Floating toolbar incorrectly positioned #4504
Replies: 9 comments
-
Hi @jeremieamstutz! I'm Dosu and I’m helping the plate team. The floating toolbar shows up at -9999px when Plate can't find a valid text selection to anchor it. This usually happens if the selection is collapsed, missing, or not mapped to a DOM range. The toolbar only appears when you have an expanded (highlighted) selection with text, the editor is focused, and no overlays (like link or AI chat popups) are open. If any of these conditions aren't met, the toolbar is hidden or positioned off-screen by design (source, more). To fix this, make sure:
If you still see the issue, double-check your editor setup and make sure the selection is being tracked correctly. This behavior is by design to avoid showing the toolbar when it can't be positioned reliably. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
Can you try others like |
Beta Was this translation helpful? Give feedback.
-
I am having the same issue. The editor is focused, there is text selected, etc, and the toolbar is displaying in the top left corner of the container. Attached is what the toolbar state is. Not sure if related but i also keep getting these errors: Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()? Check the render method of and Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()? Check the render method of ![]() |
Beta Was this translation helpful? Give feedback.
-
We're using React 19, so you'll need to use |
Beta Was this translation helpful? Give feedback.
-
I'm using React 19 and I checked all the points from the bot. My project is very new so I shouldn't have any side effects. Changing the render to aboveSlate made the editor disappear completely. |
Beta Was this translation helpful? Give feedback.
-
Upgrading to react 19 fixed the issue for me. |
Beta Was this translation helpful? Give feedback.
-
@jeremieamstutz Could you reproduce it from https://github.com/udecode/plate-template ? |
Beta Was this translation helpful? Give feedback.
-
So, I
Still the same issue :( |
Beta Was this translation helpful? Give feedback.
-
![]() It seems that there is an issue with the ref |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hello,
I installed the default floating toolbar kit, but it doesn't show up at all.
I inspected a little and it seems to appear but at the default position of -9999px instead of the correct position.
I don't why exactly this happens. I guess the reference of the selection is not visible
You're help is greatly appreciated :)
Plate version
49.0.0
Browsers
Chrome
Beta Was this translation helpful? Give feedback.
All reactions