mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Don't update an input field when its focused
This commit is contained in:
@@ -110,7 +110,10 @@ var BooleanHandler = AttributeHandler.extend({
|
||||
|
||||
var ValueHandler = AttributeHandler.extend({
|
||||
update: function (element, oldValue, value) {
|
||||
element.value = value;
|
||||
var focused = (element === document.activeElement);
|
||||
|
||||
if (!focused)
|
||||
element.value = value;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user