Prevent function module overwriting built-in sandbox properties

This commit is contained in:
Nick O'Leary
2021-02-16 13:58:59 +00:00
parent 9d34abf603
commit 785c349adc
6 changed files with 115 additions and 41 deletions

View File

@@ -344,6 +344,16 @@
that.element.val(that.value());
that.element.trigger('change',that.propertyType,that.value());
});
this.input.on('keyup', function(evt) {
that.validate();
that.element.val(that.value());
that.element.trigger('keyup',evt);
});
this.input.on('paste', function(evt) {
that.validate();
that.element.val(that.value());
that.element.trigger('paste',evt);
});
this.input.on('keydown', function(evt) {
if (evt.keyCode >= 37 && evt.keyCode <= 40) {
evt.stopPropagation();