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

fix: corrected the downed flag state to ensure the correct invocation of onChange() #1982

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

cincolunes
Copy link

@cincolunes cincolunes commented Jun 4, 2024

Why

Fixes #1980

What

Fix the behavior of the onChange() function to return the current states of the selected items instead of the previous states or an undelivered state. I've just added the imperative punctuation mark to the downed state within the useEffect function.

Checklist

  • Documentation updated (example)
  • Storybook entry added (example)
  • Ready to be merged

No documentation or storybook changes, since this works just as expected

see the issue for details on the typos fixed
Copy link

vercel bot commented Jun 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
drei ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 25, 2024 1:43am

Copy link

codesandbox-ci bot commented Jun 4, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@cincolunes cincolunes changed the title fix: correct downed bflag state for right invoking of onChange() fix: corrected the downed flag state to ensure the correct invocation of onChange() Jun 4, 2024
Copy link

vercel bot commented Aug 8, 2024

@cincolunes is attempting to deploy a commit to the Poimandres Team on Vercel.

A member of the Team first needs to authorize it.

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

Successfully merging this pull request may close these issues.

The onChange() function of the <Select/> component desynchronizes with the active state.
1 participant