Skip to content
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

onChange callback skips first call when using controlled PreviewGroup #211

Open
luanraithz opened this issue Mar 22, 2023 · 1 comment
Open

Comments

@luanraithz
Copy link

luanraithz commented Mar 22, 2023

Example: https://codesandbox.io/s/fervent-ardinghelli-h68vgk?file=/src/App.js

  • Click on "Open Preview"
  • Hit Arrow Left or Right on your computer 2 times, switching each time.

On the logs you we see that just one of your clicks was logged.
I would expect the callback to be called every time there is a change

Edit 1: The dummy way to fix this is by simulating a click on the element before showing the preview.

@linxianxi
Copy link
Contributor

fixed in latest version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants