Skip to content
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

Chore: Update PSelectOptions to handle its own selection logic #1034

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

pleek91
Copy link
Collaborator

@pleek91 pleek91 commented Dec 6, 2023

Description

Small refactor so that PSelectOptions can be used on its own without reproducing all of the logic for highlighting and selecting values.

Copy link

netlify bot commented Dec 6, 2023

Deploy Preview for prefect-design ready!

Name Link
🔨 Latest commit 45ce0e2
🔍 Latest deploy log https://app.netlify.com/sites/prefect-design/deploys/6570b63f59abf40008849093
😎 Deploy Preview https://deploy-preview-1034--prefect-design.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines +133 to +136
if (multiple.value) {
return props.modelValue ?? []
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

small bugfix. Noticed this component wasn't working correctly with modelValue: null | undefined and multiple: true

@pleek91 pleek91 merged commit bc2a429 into main Dec 6, 2023
5 checks passed
@pleek91 pleek91 deleted the p-select-options-update branch December 6, 2023 19:07
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.

2 participants