-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add trackUnsaved prop to SelectFieldV2 #4811
Add trackUnsaved prop to SelectFieldV2 #4811
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few things to address but nice progress!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there. I'm not sure about inputId={name}
. @esizer, do you mind having a look or at least giving an explanation why this solution is the only option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Resolves #4563.
Updates the
SelectFieldV2
component to track unsaved changes by default and adds a new prop for disabling. Also adds a new story for the new prop being set to false.To test:
/en/support
)SelectFieldV2
and confirm it changes appearance appropriately.