Fix searchbox triggered change an extra time after pressing Enter key

This commit is contained in:
nathan 2022-12-05 10:31:15 -07:00
parent 2b02d4e9ab
commit b2b3caaa64

View File

@ -64,7 +64,8 @@ export class Et2Searchbox extends Et2Textbox
// Stop from bubbling; enter in search is just for here.
event.stopPropagation();
this._oldChange(event);
// Lose focus, which triggers change, instead of calling change handler which would trigger again when losing focus
this.blur();
}
}