chore: refactored chat_editor

This commit is contained in:
hugo committed 2026-05-01 15:26:22 +02:00
1 parent cf3c598911
commit fbc1cba52e
8 files changed
+731 -531

No files matched your search

+8 -1
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 } })
);
}
});
}
};