Skip to content

[WNMGDS-3189] Fix ds-autocomplete storybook controls #3571

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

Merged

Conversation

tamara-corbalt
Copy link
Collaborator

Summary

  • Removed value attribute from the public ds-autocomplete interface. There doesn't seem to be a clear use case for allowing external control of the input value. The previous storybook implementation appears to have masked the fact that forcibly passing a value breaks the expected behavior of the component.

  • Added missing formAttrs to ds-autocomplete storybook controls.

Jira ticket

How to test

  • Run storybook, open the ds-autocomplete stories, and verify that the missing formAttrs are now available in the controls panel.
  • Run npm test:unit:wc

Checklist

  • Prefixed the PR title with the Jira ticket number as [WNMGDS-####] Title or [NO-TICKET] if this is unticketed work.
  • Selected appropriate Type (only one) label for this PR, if it is a breaking change, label should only be Type: Breaking
  • Selected appropriate Impacts, multiple can be selected.
  • Selected appropriate release milestone

@tamara-corbalt tamara-corbalt added this to the 12.3.0 milestone May 7, 2025
@tamara-corbalt tamara-corbalt added Type: Fixed Indicates an unexpected problem or unintended behavior Impacts: Core Impacts the core DS primarily, changes may occur in other themes as well. labels May 7, 2025
@tamara-corbalt tamara-corbalt marked this pull request as ready for review May 7, 2025 20:06
Copy link
Collaborator

@jack-ryan-nava-pbc jack-ryan-nava-pbc left a comment

Choose a reason for hiding this comment

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

Looks great! Thank you

Copy link
Collaborator

@kim-cmsds kim-cmsds left a comment

Choose a reason for hiding this comment

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

Much improved; nice work!

@tamara-corbalt tamara-corbalt merged commit 575c876 into main May 9, 2025
1 check passed
@tamara-corbalt tamara-corbalt deleted the tamara/WNMGDS-3189/fix-ds-autocomplete-storybook-controls branch May 9, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Impacts: Core Impacts the core DS primarily, changes may occur in other themes as well. Type: Fixed Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants