Skip to content

PickerItem - support asynchronous and ignore selection #2787

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
merged 2 commits into from
Oct 31, 2023

Conversation

M-i-k-e-l
Copy link
Collaborator

Description

PickerItem - support asynchronous and ignore selection

Changelog

PickerItem - support asynchronous and ignore selection
Relates to the FontPicker

Additional info

None

@@ -238,7 +239,7 @@ export interface PickerItemProps {
* Callback for onPress action
* @param selected true\false in multi mode and undefined in single mode
*/
onPress?: (selected?: boolean) => void;
onPress?: (selected: boolean | undefined, props: any) => void | Promise<boolean>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would add the note you added there about returning false to disable closing the picker

@ethanshar
Copy link
Collaborator

Approved, wrote a small comment

@M-i-k-e-l M-i-k-e-l added the Important for Next Release PR that must be included in the release version label Oct 31, 2023
@M-i-k-e-l M-i-k-e-l added this to the Design Kits milestone Oct 31, 2023
@M-i-k-e-l M-i-k-e-l enabled auto-merge (squash) October 31, 2023 14:46
@M-i-k-e-l M-i-k-e-l merged commit 71a8c24 into master Oct 31, 2023
@M-i-k-e-l M-i-k-e-l deleted the feat/picker-item-on-press-support-ignore-selection branch October 31, 2023 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Important for Next Release PR that must be included in the release version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants