Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Blocks: Add automatic handling of focus for RichText component #6419
Follow up for #5029 where we introduced new context API from React 16.3 to apply
This PR explores this idea further to make it possible to enforce that there can only be one
I proposed the following
I started small by using
How has this been tested?
Made sure it works without any changes for all blocks and for those updated in particular:
Types of changes
Refactoring, no changes in the UX or UI.
We use a similar technique that uses
youknowriad left a comment
I like it but there might be a small bug on initial mount.