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 single inputs not clearing for mutually exclusive fields #3091

Merged

Conversation

rmccar
Copy link
Contributor

@rmccar rmccar commented Mar 14, 2024

What is the context of this PR?

Fixes: #3092

When a single input is used with the date or duration components alongside mutually exclusive checking the mutually exclusive option doesn't clear the input. This was a bug with the input not being passed to the mutually exclusive component. This was missed because of missing test coverage so I have added tests for this too.

How to review this PR

  • Changes make sense
  • Tests cover all eventualities
  • Components work as expected and using a single field now causes the input to clear when checking the mutually exclusive checkbox

Checklist

This needs to be completed by the person raising the PR.

  • I have selected the correct Assignee
  • I have linked the correct Issue

@rmccar rmccar self-assigned this Mar 14, 2024
Copy link

netlify bot commented Mar 14, 2024

Deploy Preview for ons-design-system-preview ready!

Name Link
🔨 Latest commit 2d1aa31
🔍 Latest deploy log https://app.netlify.com/sites/ons-design-system-preview/deploys/65f89b088b2298000906ba99
😎 Deploy Preview https://deploy-preview-3091--ons-design-system-preview.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.

@rmccar rmccar added the Bug Something isn't working label Mar 14, 2024
@rmccar rmccar force-pushed the fix-date-duration-single-mutually-exclusive-field-input-clear branch from d099cfb to 266a73e Compare March 15, 2024 09:14
@rmccar rmccar requested a review from a team March 15, 2024 14:26
@adi-unni
Copy link
Contributor

Changes look good!

@rmccar rmccar merged commit ed61880 into main Mar 19, 2024
9 checks passed
@rmccar rmccar deleted the fix-date-duration-single-mutually-exclusive-field-input-clear branch March 19, 2024 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Single inputs not clearing when clicking mutually exclusive checkbox
4 participants