I'm trying to create custom input component. First of all I tried to use native input component. Somthing like this
<input type="text" value="" onblur= onfocus=>
But this code does't provide two way binding. The observer doesn't triggered
valueChanged: Ember.observer('inputValue', function () {
// deal with the change
this.set("valueSet",(this.get('inputValue').trim().length > 0));
}),
After this I have try use input helper
In this case valueChanged observer is triggered but focus event doesn't listening, otherwise the key-press is triggered.
How can I use two way binding and focus event at one time?
Aucun commentaire:
Enregistrer un commentaire