Skip to content

Commit

Permalink
spike if we do nothing if value=initial_value
Browse files Browse the repository at this point in the history
  • Loading branch information
ksercs committed Oct 7, 2024
1 parent c161a8b commit 360aefc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -920,8 +920,8 @@ const TextEditorBase = Editor.inherit({

_resetToInitialValue() {
if (this.option('value') === this._initialValue) {
this._options.silent('text', this._initialValue);
this._renderValue();
// this._options.silent('text', this._initialValue);
// this._renderValue();
} else {
this.callBase();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ QUnit.module('common', {}, () => {
const $input = $(`.${INPUT_CLASS}`);
const keyboard = keyboardMock($input);

keyboard.type('123').press('enter');
keyboard.type('123').change();

assert.strictEqual($input.val(), '123', 'input value is pressent before reset');

Expand Down

0 comments on commit 360aefc

Please sign in to comment.