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(timepicker): stopped disabled prop from TimePicker overriding the TimePickerSelect's disabled prop #16324

Merged

Conversation

Gururajj77
Copy link
Contributor

Closes #16246

Stopped TimePicker's disabled prop overriding the TimePickerSelect disabled prop

Changelog

Changed

  • Added nullish coalescing operator to disabled prop while passing it to child, to check whether the user has passed the disabled prop for TimePickerSelect

Testing / Reviewing

Test the component by disabling TimePicker and TimePickerSelect separately and observe the functionality to be intact or not.

@Gururajj77 Gururajj77 requested a review from a team as a code owner May 6, 2024 11:11
@Gururajj77 Gururajj77 changed the title fix(timepicker): stopped disabled prop from TimePicker overriding the TimePickerSelect's disabled prop fix(timepicker): stopped disabled prop from TimePicker overriding the TimePickerSelect's disabled prop May 6, 2024
@Gururajj77 Gururajj77 changed the title fix(timepicker): stopped disabled prop from TimePicker overriding the TimePickerSelect's disabled prop fix(timepicker): stopped disabled prop from TimePicker overriding the TimePickerSelect's disabled prop May 6, 2024
Copy link

netlify bot commented May 6, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit ce73fa1
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/6638bac65c8e810008b89c3e
😎 Deploy Preview https://deploy-preview-16324--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
Contributor

@preetibansalui preetibansalui left a comment

Choose a reason for hiding this comment

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

LGTM

@Gururajj77 Gururajj77 added this pull request to the merge queue May 7, 2024
Merged via the queue into carbon-design-system:main with commit 02588c6 May 7, 2024
20 checks passed
@Gururajj77 Gururajj77 deleted the timepicker-disabler branch May 7, 2024 13:57
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]: Unable to disable TimePickerSelect within TimePicker
3 participants