editor.js
editor.js copied to clipboard
Bug: clicking outside of an editor should clear currentBlock (call dropPointer) even if selection was inside of editor before the click
Describe a bug.
Steps to reproduce:
- Go to example_dev.html
- Click on somewhere outside of the editor
- Press '/'
Expected behavior: Toolbox shouldn't be opened, because I've already went out of the editor by clicking outside
Actual: Toolbox is still opened because we haven't cleared currentBlock
Device, Browser, OS: Any
Editor.js version: 2.29.1
Seems like its works only on a second click. Need to debug this code in the ui.ts
Seems like its works only on a second click. Need to debug this code in the
ui.ts
Seems like I found the issue, could you please check the PR?