-
Notifications
You must be signed in to change notification settings - Fork 549
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
feat(SelectMenu): handle function in showCreateOptionWhen
prop
#1853
Conversation
Why not pass this option to |
Why not, but then wouldn't it also make sense to remove the What do you think? |
Unfortunately, it's too late for that as it would cause a breaking change. |
Of course, in that case wouldn't you agree that it makes more sense to do it with |
Sorry but I don't understand your point, you just want to toggle the creatable state right? You can pass the boolean to creatable which can be a computed or a ref for example: <script setup lang="ts">
const creatable = ref(false)
</script>
<template>
<USelectMenu :creatable="creatable" />
</template> |
showCreateOptionWhen
prop
Would you mind fixing the lint? π |
All done, sorry about that π |
Thanks @vratier! π |
β¦t#1853) Co-authored-by: Benjamin Canac <[email protected]>
π Linked issue
β Type of change
π Description
Adds the functionality to use a custom function to determine whether the create option should be displayed in a
SelectMenu
.Example use cases:
π Checklist