mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-12 09:24:15 -04:00
Use input event not keyup
The `oninput` event is a more performant way to detect changes to a textbox’s contents (compared to `onkeydown`, `onpaste`, etc). It’s not supported in older browsers, but since this is a likely to be used by platform admin users only that’s OK.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
);
|
||||
|
||||
this.$input
|
||||
.on('change keyup', this.update)
|
||||
.on('input', this.update)
|
||||
.trigger('change');
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user