-
Notifications
You must be signed in to change notification settings - Fork 86
Fix behaviors for PicklistItems with no value for SLDS2
#499
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 behaviors for PicklistItems with no value for SLDS2
#499
Conversation
|
✨✨ That's perfect, there is no visual difference! ✨✨ Check out the report here. |
1241371 to
4723f49
Compare
PicklistItem behaviors with no valuePicklistItems with no value
PicklistItems with no valuePicklistItems with no value for SLDS2
stories/Picklist.stories.tsx
Outdated
| onComplete: { action: 'complete' }, | ||
| picklistItem1_onClick: { action: 'picklistItem1_click' }, | ||
| picklistItem2_onClick: { action: 'picklistItem2_click' }, | ||
| picklistItem3_onClick: { action: 'picklistItem3_click' }, |
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.
Not sure why it added handlers for each picklist items
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.
Same as #499 (comment).
stories/Picklist.stories.tsx
Outdated
| <PicklistItem | ||
| key='1' | ||
| label='Picklist Item One (No Value)' | ||
| onClick={picklistItem1_onClick} |
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.
I'm not sure why PicklistItem requires onClick handling test. It should be handled in the Picklist's onSelect or onValueChange event.
Also, it is useless when not setting value in PicklistItem. It is expected to set the value if it handles the selection event.
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.
Summary
Fixed behaviors for
PicklistItems with no value regardingisFocusedandonClick()What I did
onClick()actions ofPicklistItemto storybook