-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Version 3.31.0 breaks InputGroup with redux form #4298
Comments
Ya it seems like #4266 changed how async updates fired. This is definitely an issue for us |
@tnrich are you also using |
@adidahiya yes also using redux-form. I haven't tried to replicate outside of a redux-form context |
It looks like these issues: facebook/react#955 and facebook/react#14904. I'm going to try the workaround in facebook/react#14904 (comment):
|
Thanks @adidahiya hopefully that works! Let us know when we can test out the new version. |
Update: using |
Thanks @adidahiya let us know how it goes! |
I tried many different approaches and all were unsuccessful. You can see my progress at #4323. At this point I don't have a good path forward, and we are not hitting this issue with our internal applications. Maybe it's an anti-pattern to control inputs asynchronously like redux-form does? If you can come up with a solution which does not cause a regression for the issue described in #4262, I'm all ears. |
@adidahiya What about a prop to opt-out of the |
I took another pass at a (slightly complicated) solution with fresh eyes, and I think I've got something working in #4323. I don't really want Blueprint users to have to think about toggling between async-capable inputs (which work around the IME composition bug) and regular inputs (which don't), because that choice would be hard to make across a software platform. The InputGroup building block should work for all locales out of the box. |
@tnrich @tgreen7 @ejose19 could you try out the latest release to verify the fix? It seems to work in the scenario from the initial code sandbox linked at the top of this thread, see my fork: https://codesandbox.io/s/blueprint-4298-fix-verification-vjz7n |
@adidahiya I think it is working for us as far as we can tell. Can verify that the sandbox works as expected now. Thank you 🙏 🙏 |
Environment
Code Sandbox
working on 3.30.1
https://codesandbox.io/s/blueprint-sandbox-forked-n039t?file=/src/index.tsx
broken on 3.31.0
https://codesandbox.io/s/blueprint-sandbox-forked-327mz?file=/src/index.tsx
Steps to reproduce
Possible solution
Version 3.31.0 added the asyncControllableInput
The text was updated successfully, but these errors were encountered: