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

Editor cannot receive focus when empty, and when populated, focuses in wrong place #184

Closed
3 tasks done
caitecoll opened this issue Sep 21, 2020 · 4 comments
Closed
3 tasks done
Labels
bug Something isn't working

Comments

@caitecoll
Copy link

Checklist

Description

There are two issues here, both related to keyboard focus on the text area:

Issue 1:

  • When the editor is empty (like in the main mui-rte CodeSandbox demo), it's impossible for it to gain focus using the keyboard.

Issue 2:

  • When the editor contains text, it is possible to focus into the editor using a keyboard, however it focuses at the beginning of the content rather than at the end.

Steps to reproduce

  1. Tab through toolbar buttons
  2. Notice it's impossible to focus on the editor
  3. Click on the editor and type in "aaa"
  4. Use the keyboard to navigate through the toolbar buttons
  5. Notice the editor can receive focus, but focus is at the beginning of the string rather than at the end of it.
@niuware niuware added the bug Something isn't working label Oct 7, 2020
@niuware niuware closed this as completed Oct 7, 2020
@niuware
Copy link
Owner

niuware commented Oct 8, 2020

This was fixed on this release.

@tactycadmin
Copy link

Is there no way to focus on an empty text container with a mouse event? Seems like only the TAB key press is supported?

@niuware
Copy link
Owner

niuware commented Nov 2, 2020

Hi @tactycadmin, do you mean with some synthetic mouse event? What will be the use case?

@niuware
Copy link
Owner

niuware commented Nov 4, 2020

Is there no way to focus on an empty text container with a mouse event? Seems like only the TAB key press is supported?

@tactycadmin This is fixed on version 1.26.0.

@niuware niuware closed this as completed Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants