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(react): pass args in useSavedCallback #11253

Merged
merged 2 commits into from
Apr 19, 2022

Conversation

abbeyhrt
Copy link
Contributor

@abbeyhrt abbeyhrt commented Apr 19, 2022

Closes #11181

Take 2. useSavedCallback was not passing along arguments from the functions it was wrapping, preventing the correct info from onChange from being available.

Testing / Reviewing

Add onChange={(dates) => {console.log(dates)}} to a date picker story, make a change in the input, and check that dates is not undefined.

@netlify
Copy link

netlify bot commented Apr 19, 2022

Deploy Preview for carbon-components-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit d8edf04
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/625efa86a1571100087e4e09
😎 Deploy Preview https://deploy-preview-11253--carbon-components-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@abbeyhrt abbeyhrt requested a review from tay1orjones April 19, 2022 17:32
@netlify
Copy link

netlify bot commented Apr 19, 2022

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit d8edf04
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/625efa86fa334900091470ef
😎 Deploy Preview https://deploy-preview-11253--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@kodiakhq kodiakhq bot merged commit 0845652 into carbon-design-system:main Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: DatePicker (range) always returns undefined onChange
3 participants