diff --git a/Modules/Helpdesk/Resources/views/components/html-editor.blade.php b/Modules/Helpdesk/Resources/views/components/html-editor.blade.php index 3da0503e..d7074e6d 100644 --- a/Modules/Helpdesk/Resources/views/components/html-editor.blade.php +++ b/Modules/Helpdesk/Resources/views/components/html-editor.blade.php @@ -47,8 +47,8 @@ this.syncToLivewire(false); }, }" - x-on:helpdesk-editor-sync.window="if (($event.detail?.model || model) === model) syncToLivewire(false)" - x-on:helpdesk-editor-reset.window="if (($event.detail?.model || model) === model) resetEditor()" + x-on:helpdesk-editor-sync.window="if (! $event.detail?.model || $event.detail.model === @js($model)) syncToLivewire(false)" + x-on:helpdesk-editor-reset.window="if (! $event.detail?.model || $event.detail.model === @js($model)) resetEditor()" >