You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Image toolbar disappears instantly in Safari when the mouse leaves the image area #2541
bug:P2High: Core functionality significantly impacted.sponsorReported by or on behalf of a sponsor or paying customer and eligible for prioritized attention.
In Safari, the Image block toolbar disappears instantly when the mouse leaves the image, making it impossible to click the buttons. This works fine in Chrome and Firefox.
What did you expect to happen?
The toolbar should stay visible while the image is selected so users can move their mouse to the buttons.
I'm with SAKURA Internet Inc., and our Business Plan is registered under the project name "eureco".
If you need the registered email address for verification, please let me know the best way to send it to you privately.
Root cause for the disappearing image toolbar seems to be a side effect of a known WebKit behavior where mutating the DOM tree near a selected node causes the selection to collapse.
In BlockNote, the resize handles for images are added/removed from the DOM on every mouseenter/mouseleave. This mutation triggers Safari to drop the NodeSelection, making the toolbar vanish instantly.
I've created a patch that switches the resize handles to use opacity: 0/1 instead of physical DOM removal as workaround. This keeps the DOM tree stable and fixes the selection issue in Safari. You can use it via npx patch-package until we get an official solution.
Hi @bnscde , seems like this is the right approach. However, I didn't manage to find anything concrete documenting the Safari behaviour of collapsing the selection on DOM mutation. Do you have any links to this you could provide?
bug:P2High: Core functionality significantly impacted.sponsorReported by or on behalf of a sponsor or paying customer and eligible for prioritized attention.
Activity
YousefED commentedon Mar 5, 2026
Thanks @orzup , we'll look into this. As what company are you sponsoring btw?
orzup commentedon Mar 6, 2026
Thanks for the quick response!
I'm with SAKURA Internet Inc., and our Business Plan is registered under the project name "eureco".
If you need the registered email address for verification, please let me know the best way to send it to you privately.
Looking forward to the fix!
YousefED commentedon Mar 6, 2026
Thanks. We aim to resolve it later this month!
bnscde commentedon Mar 30, 2026
Root cause for the disappearing image toolbar seems to be a side effect of a known WebKit behavior where mutating the DOM tree near a selected node causes the selection to collapse.
In BlockNote, the resize handles for images are added/removed from the DOM on every mouseenter/mouseleave. This mutation triggers Safari to drop the NodeSelection, making the toolbar vanish instantly.
I've created a patch that switches the resize handles to use opacity: 0/1 instead of physical DOM removal as workaround. This keeps the DOM tree stable and fixes the selection issue in Safari. You can use it via npx patch-package until we get an official solution.
@blocknote+core+0.47.3.patch
matthewlipski commentedon Mar 30, 2026
Hi @bnscde , seems like this is the right approach. However, I didn't manage to find anything concrete documenting the Safari behaviour of collapsing the selection on DOM mutation. Do you have any links to this you could provide?
orzup commentedon Apr 3, 2026
Thanks for the fix! It's working great now. 🙏✨