-
-
Notifications
You must be signed in to change notification settings - Fork 714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safari: Editor component is not getting focus when there is a placeholder text #2315
Comments
@hb250131 Thanks for reporting this issue; I hadn't noticed it until now. Do you have any idea what might be causing this? |
Thanks for looking into this. |
That's what I suspected. It looks like focus goes to this element instead in Firefox:
I tried to convince Safari to do the same using |
I think the best solution would be to apply your |
Description
On safari browser we are unable to focus editor component using keyboard tabbing which is not accessible by screen reader users. Issue doesn't exist when editor has content or an editor without a placeholder text.
Steps
Sandbox
Expectation
Keyboard / Screen reader users should be able to focus the editor text box by using tabbing.
Environment
Tested with
"@udecode/plate-headless": "20.5.1",
"slate": "0.91.4",
"slate-history": "0.86.0",
"slate-hyperscript": "0.77.0",
"slate-react": "0.92.0"
Notes:
When I set the below styles, it seems to be working on Safari but Chrome is having issues with same styles
also removing
contentEditable
attribute fromspan[data-slate-placeholder="true"]
seems to be working ok on Safari but not on Chrome though.I'm sure some of you know better fix for this.
Thanks in advance!
The text was updated successfully, but these errors were encountered: