fix(core): prevent input event propagation (#11307)

### TL;DR

Prevent input event of search propagate to editor

> CLOSE BS-2832
This commit is contained in:
yoyoyohamapi
2025-04-02 10:22:25 +00:00
parent 35bea20b80
commit c4c6cdb6f2

View File

@@ -360,11 +360,13 @@ export class ChatPanelAddPopover extends SignalWatcher(
}
private _onCompositionEnd(event: CompositionEvent) {
event.stopPropagation();
this._updateQuery((event.target as HTMLInputElement).value.trim());
}
private _onInput(event: InputEvent) {
if (event.isComposing) return;
event.stopPropagation();
this._updateQuery((event.target as HTMLInputElement).value.trim());
}