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
Some weird animation behaviour of Radio group and Switch occur in Popover #12942
Comments
For easier to read, I rewrite the demo of this. When render render() {
return (
<PopoverContent
toggleScrollSync={this.onScrollSyncChange}
toggleDisplayMode={this.onDisplayModeChange}
/>
);
} So maybe there is something wrong with trigger. To know more, I must learn how it works, and it may take for a long time. If anyone would like to take this issue, maybe check what's wrong with trigger is a good choice. |
Catch it! |
Hmmm, popup will trigger re-align... |
Find some way, let me test. |
Version
3.10.3
Environment
"5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
Reproduction link
Steps to reproduce
Click the radio button quickly.
After that, you can see the animation will show on every button you just clicked including the switch component.
If you wait few seconds to click the button, you may still see only one button show the animation you clicked before.
The Gif for this issue:

What is expected?
Show the animation correctly .
What is actually happening?
One click, every button show animation.
Using the radio group and switch together at the popover outside works fine.
I have found if the handler of radio group contains the
this.setState()
, the animation problem will occur.Hope this clue will help you to fix it.
The text was updated successfully, but these errors were encountered: