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

Fix hint component and example app toolbar focus (Resolves #726) #730

Merged
merged 3 commits into from
Aug 13, 2022

Conversation

matthew-carroll
Copy link
Contributor

@matthew-carroll matthew-carroll commented Aug 12, 2022

Fix hint component and example app toolbar focus (Resolves #726)

The hint component's hint text was absorbing gesture interactions, preventing the placement of the caret. Now it ignores the pointer. The tests for this behavior required a modification to our test tools so that we can place the caret in a component that wraps a text component, instead of just a text component.

I also changed the cursor within the editor to always look like a text cursor, unless the cursor is over a selectable box, at which point it looks like a regular cursor again.

Lastly, I did my best to fix the popover toolbar focus issue. By adding a FocusScope above our custom Overlay in the example app, the user can tap toolbar buttons like "bold" and "italics" without issue. However, the dropdowns are still broken because they steal focus, and there doesn't seem to be a way to share that focus with the editor.

Copy link
Collaborator

@angelosilvestre angelosilvestre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@matthew-carroll matthew-carroll merged commit 574bc21 into main Aug 13, 2022
@matthew-carroll matthew-carroll deleted the 726_gesture-bugs branch August 13, 2022 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[super_editor] - Can't place caret in hint component, and other bugs
2 participants