mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Revert "[cm6] close autocomplete menu on blur"
This reverts commit d47648044ca15cf29cc0c87479ba2a204f232a86. GitOrigin-RevId: dc6bbcc30126d46a3b602896bfc18477fd07ab34
This commit is contained in:
parent
4c2537a753
commit
eafa8589c5
1 changed files with 0 additions and 12 deletions
|
@ -10,7 +10,6 @@ import { misspelledWordsField } from './misspelled-words'
|
|||
import { addIgnoredWord } from './ignored-words'
|
||||
import { learnWordRequest } from './backend'
|
||||
import { Word } from './spellchecker'
|
||||
import { closeCompletion } from '@codemirror/autocomplete'
|
||||
|
||||
const ITEMS_TO_SHOW = 8
|
||||
|
||||
|
@ -119,17 +118,6 @@ export const spellingMenuField = StateField.define<Tooltip | null>({
|
|||
EditorView.domEventHandlers({
|
||||
contextmenu: handleContextMenuEvent,
|
||||
click: handleClickEvent,
|
||||
blur: (event, view: EditorView) => {
|
||||
if (
|
||||
event.relatedTarget instanceof HTMLButtonElement &&
|
||||
event.relatedTarget.classList.contains('advanced-ref-search')
|
||||
) {
|
||||
// prevent closing autocomplete menu if "advanced references search" Open button is clicked
|
||||
return
|
||||
}
|
||||
|
||||
closeCompletion(view)
|
||||
},
|
||||
}),
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue