Browse Source

fix: Fixed generic button on focus style coming when focused if we hide/unhide the browser window

pull/6729/head
Muhammed Mustafa 1 year ago
parent
commit
02250922e7
  1. 4
      packages/nc-gui/components/nc/Button.vue

4
packages/nc-gui/components/nc/Button.vue

@ -52,10 +52,8 @@ const onFocus = (e: FocusEvent) => {
isFocused.value = false
} else {
const relatedTarget = e.relatedTarget as HTMLElement | null
const focusFromModal =
relatedTarget?.classList?.contains('ant-modal-wrap') || relatedTarget?.classList?.contains('ant-modal-wrap')
isFocused.value = !focusFromModal
isFocused.value = !!relatedTarget
}
isClicked.value = false

Loading…
Cancel
Save