Skip to content

Conversation

@msmx-mnakagawa
Copy link
Collaborator

@msmx-mnakagawa msmx-mnakagawa commented Sep 17, 2025

Summary

Fixed behaviors for PicklistItems with no value regarding isFocused and onClick()

What I did

  • consider cases without value
  • add onClick() actions of PicklistItem to storybook

@msmx-mnakagawa msmx-mnakagawa self-assigned this Sep 17, 2025
@reg-suit
Copy link

reg-suit bot commented Sep 17, 2025

✨✨ That's perfect, there is no visual difference! ✨✨

Check out the report here.

@msmx-mnakagawa msmx-mnakagawa force-pushed the support-slds-2-fix-picklist-item-behaviors-with-no-value branch from 1241371 to 4723f49 Compare September 17, 2025 05:54
@msmx-mnakagawa msmx-mnakagawa changed the title Fix PicklistItem behaviors with no value Fix behaviors for PicklistItems with no value Sep 17, 2025
@msmx-mnakagawa msmx-mnakagawa changed the base branch from support-slds-2-show-picklist-dividers-expectedly to master September 29, 2025 07:53
@msmx-mnakagawa msmx-mnakagawa marked this pull request as ready for review September 29, 2025 07:58
@msmx-mnakagawa msmx-mnakagawa changed the title Fix behaviors for PicklistItems with no value Fix behaviors for PicklistItems with no value for SLDS2 Oct 29, 2025
onComplete: { action: 'complete' },
picklistItem1_onClick: { action: 'picklistItem1_click' },
picklistItem2_onClick: { action: 'picklistItem2_click' },
picklistItem3_onClick: { action: 'picklistItem3_click' },
Copy link
Collaborator

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Same as #499 (comment).

<PicklistItem
key='1'
label='Picklist Item One (No Value)'
onClick={picklistItem1_onClick}
Copy link
Collaborator

@stomita stomita Oct 30, 2025

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.

Copy link
Collaborator Author

@msmx-mnakagawa msmx-mnakagawa Nov 4, 2025

Choose a reason for hiding this comment

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

@stomita
Certainly, it's excessive to add stories testing onClick() handlers.
Therefore, I reverted them in f487cc6 and 4b9f3a8.

@stomita stomita merged commit c0ff7e5 into master Nov 4, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants