Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

empty textfield doesn't fire onblur

$
0
0

I am building an app for iOS using alloy.

I have a list where the user can add a name to each row or leave it blank. I use an "onblur" event to save the name in properties. So far so good. They can add names and change the names, but I noticed that if they want to remove a name it doesn't work. Apparently if you back-space until the field is blank and then leave the field, the onBlur event does not get fired. So the user doesn't have the option to remove a name from the list. I also tried "onChange" and it's the same problem there.

Is this expected behavior? Events are only fired if there is something in the textfield? Is there a way around it?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>