@prof-dev/improved-select
Advanced tools
Comparing version 1.1.14 to 1.1.15
@@ -32,2 +32,3 @@ import { EventEmitter } from "@prof-dev/event-emitter"; | ||
private selectedValueElements; | ||
private form; | ||
private initialSelection; | ||
@@ -34,0 +35,0 @@ private defaultSelection; |
@@ -198,2 +198,3 @@ "use strict"; | ||
_this.selectObserver = new MutationObserver(_this.onSelectAttributesChange); | ||
_this.form = _this.element.closest("form"); | ||
_this.isActive = _this.element.classList.contains("is-active"); | ||
@@ -328,2 +329,5 @@ _this.isHtmlValue = _this.element.hasAttribute("data-select-html-value"); | ||
} | ||
if (this.form !== null) { | ||
this.form.addEventListener("reset", this.reset); | ||
} | ||
}; | ||
@@ -330,0 +334,0 @@ ImprovedSelect.prototype.updateSelectedValues = function () { |
{ | ||
"name": "@prof-dev/improved-select", | ||
"version": "1.1.14", | ||
"version": "1.1.15", | ||
"description": "Helper for live clicks events management", | ||
@@ -5,0 +5,0 @@ "main": "lib/ImprovedSelect.js", |
@@ -44,2 +44,3 @@ import { EventEmitter } from "@prof-dev/event-emitter"; | ||
private selectedValueElements: HTMLElement[] = []; | ||
private form: HTMLFormElement | null; | ||
private initialSelection: number[] = []; | ||
@@ -63,3 +64,3 @@ private defaultSelection: number[] = []; | ||
this.selectObserver = new MutationObserver(this.onSelectAttributesChange); | ||
this.form = this.element.closest("form"); | ||
this.isActive = this.element.classList.contains("is-active"); | ||
@@ -226,2 +227,6 @@ this.isHtmlValue = this.element.hasAttribute("data-select-html-value"); | ||
} | ||
if (this.form !== null) { | ||
this.form.addEventListener("reset", this.reset); | ||
} | ||
} | ||
@@ -228,0 +233,0 @@ |
Sorry, the diff of this file is not supported yet
91672
1625