You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 4, 2020. It is now read-only.
Declarative focus control in all stardust components
Problem description
We are forced to handle focus imperatively in some of our components, which is exposing us to:
bugs
regressions
unreliable behavior
Proposed solution
Sorry, but I don't like these imperative methods, we have the same issues with SUIR's Dropdown, it's very hard to understand when something will be focus and why.
It will be great to introduce the declarative focus control to Stardust, something like this: https://github.com/pirelenito/react-controlled-focus
It can be out of the scope of this PR, but we should avoid the imperative stuff like this. Originally posted by @layershifter in #839