Allow updates to OptionController while listening. fix #101

This commit is contained in:
Jeff Nusz 2016-08-18 14:54:52 -07:00
parent f53cfa5215
commit ca19030081
2 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class NumberControllerBox extends NumberController {
}
updateDisplay() {
if (dom.isActive(this.__input)) return null; // prevent number from update if user is trying to manually update
if (dom.isActive(this.__input)) return this; // prevent number from updating if user is trying to manually update
this.__input.value = this.__truncationSuspended ? this.getValue() : roundToDecimal(this.getValue(), this.__precision);
return super.updateDisplay();
}

View File

@ -78,6 +78,7 @@ class OptionController extends Controller {
}
updateDisplay() {
if (dom.isActive(this.__select)) return this; // prevent number from updating if user is trying to manually update
this.__select.value = this.getValue();
return super.updateDisplay();
}