Resize editable-text after Esc pressed

This commit is contained in:
Abe Jellinek 2023-12-01 13:55:54 -05:00 committed by Dan Stillman
parent b2eed77914
commit c16a2d4b05

View file

@ -165,7 +165,7 @@
}
}
else if (event.key === 'Escape') {
this._input.value = this._input.dataset.initialValue;
this._input.value = this.value = this._input.dataset.initialValue;
this._input.blur();
}
});