Skip to content

Commit

Permalink
Fixed search input and selected label showing behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
itsJohnnyGrid committed Jan 29, 2025
1 parent 310775c commit 34e2bd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ui.form-select/USelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ const {
</div>

<span
v-if="!multiple && isLocalValue"
v-if="!multiple && isLocalValue && ((searchable && !isOpen) || !searchable)"
v-bind="selectedLabelAttrs"
@mousedown.prevent="toggle"
>
Expand Down
5 changes: 4 additions & 1 deletion src/ui.form-select/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ export default /*tw*/ {
},
search: {
base: "flex w-full",
compoundVariants: [{ multiple: false, selected: true, class: "w-0" }],
compoundVariants: [
{ multiple: false, selected: true, opened: false, class: "w-0" },
{ multiple: false, selected: true, searchable: false, class: "w-0" },
],
},
searchInput: {
base: `
Expand Down

0 comments on commit 34e2bd8

Please sign in to comment.