@mozaic-ds/angular 2.0.0-beta.21 → 2.0.0-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1950,9 +1950,13 @@ class MozTextInput {
|
|
|
1950
1950
|
}
|
|
1951
1951
|
clearValue() {
|
|
1952
1952
|
this._value.set('');
|
|
1953
|
-
this.
|
|
1953
|
+
const input = this.elementRef.nativeElement;
|
|
1954
|
+
this.renderer.setProperty(input, 'value', '');
|
|
1954
1955
|
this.onChange('');
|
|
1955
1956
|
this.onTouched();
|
|
1957
|
+
// Dispatch input event to trigger change detection and validators
|
|
1958
|
+
const event = new Event('input', { bubbles: true });
|
|
1959
|
+
input.dispatchEvent(event);
|
|
1956
1960
|
this.updateClearButtonVisibility();
|
|
1957
1961
|
}
|
|
1958
1962
|
onInput(event) {
|