-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
6.4.1: something removes autofocus from all inputs #16847
Comments
Looks like the problem is that React tries to focus the input while @tmeasday can we maybe reconsider this? |
Ok, this has come up in a couple contexts, interesting about the autofocus @Hypnosphi. The change I made here was fixing what was clearly an unintended bug ( However, I guess the problem is that (at least the React) framework(s) don't call @shilman what do you think we should do? One option would be to make the "loading story" spinner an overlay over the story, so we don't need to hide the story while preparing. Then we could go back to the old "broken" behaviour of having the story always be visible. |
@tmeasday I agree that reverting the change and hacking an overlay is the safest path here! |
w00t!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.4.3 containing PR #16850 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Reproduction: https://github.com/Hypnosphi/storybook-autofocus
It's probably something non-react, because react devtools still show
autoFocus: true
:The text was updated successfully, but these errors were encountered: