chore: refactored chat_editor

This commit is contained in:
2026-05-01 15:26:22 +02:00
parent cf3c598911
commit fbc1cba52e
8 changed files with 731 additions and 531 deletions

View File

@@ -555,9 +555,16 @@ document.addEventListener("DOMContentLoaded", () => {
this.handleNativeMenuAction = (event) => {
const action = event.detail?.action;
const ackId = event.detail?.ackId;
if (action) {
this.pushEvent("native_menu_action", { action });
this.pushEvent("native_menu_action", { action }, () => {
if (ackId) {
window.dispatchEvent(
new CustomEvent("bds:native-menu-action-ack", { detail: { ackId } })
);
}
});
}
};