30 Dec 2011 3:06 PM #1
triggerfield emptytext styling not replaced on reset()
I noticed that if I focus (enter text or not) in a trigger field then reset() the field (using this.reset() in the onTriggerClick method) the empty text from the config is placed in the field, but the x-form-empty-field class is not applied until after I manually click elsewhere in the app to further blur the field.
Should the x-form-empty-field class be applied since the input field is not itself focused after the reset()?
31 Dec 2011 9:10 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
If the original value is undefined then it should be I would think.Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.