UBERF-8568 Fix focus leak when pressing tab in todo list (#7082)
Some checks are pending
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2024-11-03 23:54:03 +07:00 committed by GitHub
parent 8bd4590816
commit fcc6788aef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,6 +5,8 @@ const canBlur = (editor: Editor, options: FocusOptions): boolean => {
options.canBlur?.(editor) ??
(!editor.isActive('bulletList') &&
!editor.isActive('orderedList') &&
!editor.isActive('taskList') &&
!editor.isActive('todoList') &&
!editor.isActive('table') &&
!editor.isActive('code') &&
!editor.isActive('codeBlock'))