You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the following file (which is an extract of an autocomplete component). Try typing something in the field.
HSP file
varklass=require("hsp/klass");var$set=require("hsp/$set");varCtrl=klass({keyDown: function(){if(!this.myTimeout){varself=this;$set(this,"myTimeout",setTimeout(function(){$set(self,"myTimeout",null);// ...},5));}}});
# templatemyTemplate using c:Ctrl<inputonkeydown="{c.keyDown()}"value="{c.value}">
# /template
myTemplate().render("output");
Expected behavior
The input field contains what was typed.
Actual behavior
The input field does not receive all typed keys.
Hashspace version
Issue introduced by commit 601e25f.
It does not happen with previous commit 33b7794.
The text was updated successfully, but these errors were encountered:
divdavem
changed the title
setTimeout (called on keydown) and changing a property on a controller prevents typing
setTimeout (called on keydown) changing a property on a controller prevents typing
Mar 27, 2014
divdavem
changed the title
setTimeout (called on keydown) changing a property on a controller prevents typing
setTimeout (called on keydown) changing a property on a controller prevents typing in a field
Mar 27, 2014
b-laporte
pushed a commit
to b-laporte/hashspace
that referenced
this issue
Mar 30, 2014
Consider the following file (which is an extract of an autocomplete component). Try typing something in the field.
HSP file
Expected behavior
The input field contains what was typed.
Actual behavior
The input field does not receive all typed keys.
Hashspace version
Issue introduced by commit 601e25f.
It does not happen with previous commit 33b7794.
The text was updated successfully, but these errors were encountered: