Skip to content
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

Remove tabindex when editable: false #2458

Closed
1 of 2 tasks
timrspratt opened this issue Jan 30, 2022 · 0 comments
Closed
1 of 2 tasks

Remove tabindex when editable: false #2458

timrspratt opened this issue Jan 30, 2022 · 0 comments
Labels
Type: Bug The issue or pullrequest is related to a bug

Comments

@timrspratt
Copy link

What’s the bug you are facing?

I am using editable: false to render a read-only instance, however because of the tabindex="0" when tabbing on the page, focus is being made on the editor. Ideally, since it's not editable, no focus should be allowed on the element so that pressing tab skips the read-only editor and moves to the next focusable element.

How can we reproduce the bug on our side?

Create an editor and set editable: false. Place a text input above and below the tiptap instance. You should be able to tab from input 1 to input 2 without getting stuck on the "read-only" tiptap instance.

Can you provide a CodeSandbox?

No response

What did you expect to happen?

As described above.

Anything to add? (optional)

No response

Did you update your dependencies?

  • Yes, I’ve updated my dependencies to use the latest version of all packages.

Are you sponsoring us?

  • Yes, I’m a sponsor. 💖
@timrspratt timrspratt added the Type: Bug The issue or pullrequest is related to a bug label Jan 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug The issue or pullrequest is related to a bug
Projects
None yet
Development

No branches or pull requests

1 participant