Browse Source

fix(nc-gui): form view rich text element focus issue

pull/7741/head
Ramesh Mane 9 months ago
parent
commit
3bd6d7ae59
  1. 2
      packages/nc-gui/components/cell/RichText.vue

2
packages/nc-gui/components/cell/RichText.vue

@ -144,7 +144,6 @@ const editor = useEditor({
onBlur: (e) => {
if (!(e?.event?.relatedTarget as HTMLElement)?.closest('.bubble-menu, .nc-textarea-rich-editor')) {
isFocused.value = false
e?.editor?.setEditable(false)
}
},
})
@ -209,7 +208,6 @@ useEventListener(
(e: FocusEvent) => {
if (!(e?.relatedTarget as HTMLElement)?.closest('.bubble-menu, .nc-textarea-rich-editor')) {
isFocused.value = false
editor.value?.setEditable(false)
}
},
true,

Loading…
Cancel
Save