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
Typing in the online example on platejs.org will strangely flip between subscript and normal text.
Notice the second line also changing the text with the title.
See gif for demonstration on Chrome mobile: https://imgur.com/a/WPCzROk
More Side effects
Furthermore pressing enter will not work and I can't make a new line. (probably because the subscript plugin is capturing it)
When
This issue arose after updating from v33 to 40. I tried downgrading slate as far as it's allowed under plate v40 but no change, and the issue doesn't occur on the slate website playground.
Solution
The bug can be isolated and avoided by disabling the SubscriptPlugin
Context
I've ruled out that it is because of autoformat rules, at least not for subscript because I don't have them enabled for subscript.
Browsers
The issue is worse on Firefox mobile, where it won't even be possible to type any text at all.
Other issues
Furthermore the issue initially looked like a revival of the old Gboard keyboard/android chrome issue (which seems to be solved, but that might've been android update that did it), but thankfully it isn't. But it did seem similar in that if you type different characters really fast, some characters would end up behind the cursor instead of in front... (this doesn't happen when it's the same character) but this seems to be unrelated to this issue and I'll try to isolate this to see if it is related.
When I only enable SuperscriptPlugin and disable the SubscriptPlugin then the issue doesn't happen.
Reproduction steps
1. Go to platejs.org on chrome or firefox mobile on Android
2. Click on the playground
3. Type something
TrySpace
changed the title
Subscript bug on mobile Chrome & Firefox on Android
Playground Subscript bug on mobile Chrome & Firefox on Android
Dec 20, 2024
Description
Typing in the online example on platejs.org will strangely flip between subscript and normal text.
Notice the second line also changing the text with the title.
See gif for demonstration on Chrome mobile: https://imgur.com/a/WPCzROk
More Side effects
Furthermore pressing enter will not work and I can't make a new line. (probably because the subscript plugin is capturing it)
When
This issue arose after updating from v33 to 40. I tried downgrading slate as far as it's allowed under plate v40 but no change, and the issue doesn't occur on the slate website playground.
Solution
The bug can be isolated and avoided by disabling the
SubscriptPlugin
Context
I've ruled out that it is because of autoformat rules, at least not for subscript because I don't have them enabled for subscript.
Browsers
The issue is worse on Firefox mobile, where it won't even be possible to type any text at all.
Other issues
Furthermore the issue initially looked like a revival of the old Gboard keyboard/android chrome issue (which seems to be solved, but that might've been android update that did it), but thankfully it isn't. But it did seem similar in that if you type different characters really fast, some characters would end up behind the cursor instead of in front... (this doesn't happen when it's the same character) but this seems to be unrelated to this issue and I'll try to isolate this to see if it is related.
When I only enable
SuperscriptPlugin
and disable theSubscriptPlugin
then the issue doesn't happen.Reproduction steps
Plate version
"@udecode/plate": "^40.3.4",
"@udecode/plate-common": "^40.3.1",
"@udecode/plate-core": "^40.3.1",
"@udecode/plate-basic-marks": "^40.0.0",
Slate React version
"slate": "^0.112.0",
Screenshots
Here's the state from my dev reproduction, by typing "Test" in a field:
Chrome, Firefox
The text was updated successfully, but these errors were encountered: