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

react: fix usage of useId #17098

Merged
merged 3 commits into from
Aug 5, 2024
Merged

Conversation

gi
Copy link
Contributor

@gi gi commented Aug 4, 2024

This updates a couple of react package components and their usage of the useId function.

Changelog

Changed

  • TableSelectRow: import useId from internal polyfill package instead of directly from React
  • TableToolbarSearch: pass prefix to useId to avoid null value

Testing / Reviewing

Existing unit tests

@gi gi requested a review from a team as a code owner August 4, 2024 06:23
@gi gi requested review from tay1orjones and guidari August 4, 2024 06:23
Copy link

netlify bot commented Aug 4, 2024

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit d26e2ca
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/66b11cc7ef8ab600081ac146
😎 Deploy Preview https://deploy-preview-17098--v11-carbon-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 configuration.

Copy link

netlify bot commented Aug 4, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit d26e2ca
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/66b11cc6821c95000833478d
😎 Deploy Preview https://deploy-preview-17098--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 configuration.

@preetibansalui
Copy link
Contributor

Fix for #17095

Copy link
Member

@tay1orjones tay1orjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks great!

@tay1orjones tay1orjones enabled auto-merge August 5, 2024 18:41
@tay1orjones tay1orjones added this pull request to the merge queue Aug 5, 2024
Merged via the queue into carbon-design-system:main with commit e963ee5 Aug 5, 2024
22 checks passed
tay1orjones added a commit to tay1orjones/carbon that referenced this pull request Aug 9, 2024
* fix(TableSelectRow): import useId from internal polyfill

* fix(TableToolbarSearch): pass prefix to useId to avoid null

---------

Co-authored-by: Taylor Jones <[email protected]>
@tay1orjones tay1orjones mentioned this pull request Aug 9, 2024
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.

3 participants