From 265a8549d332a63e7ef8b6b3c923cad9fb0557ea Mon Sep 17 00:00:00 2001 From: William Weckl Date: Sat, 7 Dec 2019 22:24:21 -0300 Subject: [PATCH] Removed the use of jQuery. --- addon/components/time-field.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/addon/components/time-field.js b/addon/components/time-field.js index 8aac809..b60b9d2 100644 --- a/addon/components/time-field.js +++ b/addon/components/time-field.js @@ -292,11 +292,12 @@ export default Component.extend({ updateDOMValue() { const value = this.get("_value"); - this.get("element").value = value; + const element = this.get("element"); + element.value = value; // trigger standard events in-case anything else is listening - this.$().trigger("input"); - this.$().trigger("change"); + element.dispatchEvent(new Event("input")); + element.dispatchEvent(new Event("change")); } });