File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed
test/components/__snapshots__ Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ function isSelectItem(item: SelectItem): item is SelectItemBase {
250
250
251
251
<slot :model-value =" (modelValue as GetModelValue<T, VK, M>)" :open =" open" >
252
252
<template v-for =" displayedModelValue in [displayValue (modelValue as GetModelValue <T , VK , M >)]" :key =" displayedModelValue " >
253
- <span v-if =" displayedModelValue" :class =" ui.value({ class: props.ui?.value })" >
253
+ <span v-if =" displayedModelValue !== undefined && displayedModelValue !== null " :class =" ui.value({ class: props.ui?.value })" >
254
254
{{ displayedModelValue }}
255
255
</span >
256
256
<span v-else :class =" ui.placeholder({ class: props.ui?.placeholder })" >
Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ function isSelectItem(item: SelectMenuItem): item is _SelectMenuItem {
385
385
386
386
<slot :model-value =" (modelValue as GetModelValue<T, VK, M>)" :open =" open" >
387
387
<template v-for =" displayedModelValue in [displayValue (modelValue as GetModelValue <T , VK , M >)]" :key =" displayedModelValue " >
388
- <span v-if =" displayedModelValue" :class =" ui.value({ class: props.ui?.value })" >
388
+ <span v-if =" displayedModelValue !== undefined && displayedModelValue !== null " :class =" ui.value({ class: props.ui?.value })" >
389
389
{{ displayedModelValue }}
390
390
</span >
391
391
<span v-else :class =" ui.placeholder({ class: props.ui?.placeholder })" >
Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ exports[`Select > renders with modelValue correctly 1`] = `
456
456
457
457
exports [` Select > renders with multiple and modelValue correctly 1` ] = `
458
458
"<button role = " combobox" type = " button" aria-controls = " reka-select-content-v-0" aria-expanded = " true" aria-required = " false" aria-autocomplete = " none" dir = " ltr" data-state = " open" class = " relative group rounded-md inline-flex items-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-default ring ring-inset ring-accented focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary pe-9" >
459
- <!--v-if--><span class = " truncate text-dimmed " > </span ><span class = " absolute inset-y-0 end-0 flex items-center pe-2.5" ><svg xmlns = " http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true" role = " img" width = " 1em" height = " 1em" viewBox = " 0 0 16 16" class = " shrink-0 text-dimmed size-5" ></svg ></span >
459
+ <!--v-if--><span class = " truncate pointer-events-none " > </span ><span class = " absolute inset-y-0 end-0 flex items-center pe-2.5" ><svg xmlns = " http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true" role = " img" width = " 1em" height = " 1em" viewBox = " 0 0 16 16" class = " shrink-0 text-dimmed size-5" ></svg ></span >
460
460
</button >
461
461
<!--teleport start-->
462
462
@@ -483,7 +483,7 @@ exports[`Select > renders with multiple and modelValue correctly 1`] = `
483
483
484
484
exports [` Select > renders with multiple correctly 1` ] = `
485
485
"<button role = " combobox" type = " button" aria-controls = " reka-select-content-v-0" aria-expanded = " true" aria-required = " false" aria-autocomplete = " none" dir = " ltr" data-state = " open" data-placeholder = " " class = " relative group rounded-md inline-flex items-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-default ring ring-inset ring-accented focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary pe-9" >
486
- <!--v-if--><span class = " truncate text-dimmed " > </span ><span class = " absolute inset-y-0 end-0 flex items-center pe-2.5" ><svg xmlns = " http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true" role = " img" width = " 1em" height = " 1em" viewBox = " 0 0 16 16" class = " shrink-0 text-dimmed size-5" ></svg ></span >
486
+ <!--v-if--><span class = " truncate pointer-events-none " > </span ><span class = " absolute inset-y-0 end-0 flex items-center pe-2.5" ><svg xmlns = " http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true" role = " img" width = " 1em" height = " 1em" viewBox = " 0 0 16 16" class = " shrink-0 text-dimmed size-5" ></svg ></span >
487
487
</button >
488
488
<!--teleport start-->
489
489
Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ exports[`Select > renders with modelValue correctly 1`] = `
456
456
457
457
exports [` Select > renders with multiple and modelValue correctly 1` ] = `
458
458
"<button role = " combobox" type = " button" aria-controls = " reka-select-content-v-0-0-0" aria-expanded = " true" aria-required = " false" aria-autocomplete = " none" dir = " ltr" data-state = " open" class = " relative group rounded-md inline-flex items-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-default ring ring-inset ring-accented focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary pe-9" >
459
- <!--v-if--><span class = " truncate text-dimmed " > </span ><span class = " absolute inset-y-0 end-0 flex items-center pe-2.5" ><span class = " iconify i-lucide:chevron-down shrink-0 text-dimmed size-5" aria-hidden = " true" ></span ></span >
459
+ <!--v-if--><span class = " truncate pointer-events-none " > </span ><span class = " absolute inset-y-0 end-0 flex items-center pe-2.5" ><span class = " iconify i-lucide:chevron-down shrink-0 text-dimmed size-5" aria-hidden = " true" ></span ></span >
460
460
</button >
461
461
<!--teleport start-->
462
462
@@ -483,7 +483,7 @@ exports[`Select > renders with multiple and modelValue correctly 1`] = `
483
483
484
484
exports [` Select > renders with multiple correctly 1` ] = `
485
485
"<button role = " combobox" type = " button" aria-controls = " reka-select-content-v-0-0-0" aria-expanded = " true" aria-required = " false" aria-autocomplete = " none" dir = " ltr" data-state = " open" data-placeholder = " " class = " relative group rounded-md inline-flex items-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-default ring ring-inset ring-accented focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary pe-9" >
486
- <!--v-if--><span class = " truncate text-dimmed " > </span ><span class = " absolute inset-y-0 end-0 flex items-center pe-2.5" ><span class = " iconify i-lucide:chevron-down shrink-0 text-dimmed size-5" aria-hidden = " true" ></span ></span >
486
+ <!--v-if--><span class = " truncate pointer-events-none " > </span ><span class = " absolute inset-y-0 end-0 flex items-center pe-2.5" ><span class = " iconify i-lucide:chevron-down shrink-0 text-dimmed size-5" aria-hidden = " true" ></span ></span >
487
487
</button >
488
488
<!--teleport start-->
489
489
Original file line number Diff line number Diff line change @@ -685,7 +685,7 @@ exports[`SelectMenu > renders with multiple and modelValue correctly 1`] = `
685
685
686
686
exports [` SelectMenu > renders with multiple correctly 1` ] = `
687
687
"<button type = " button" tabindex = " 0" aria-label = " Show popup" aria-haspopup = " listbox" aria-expanded = " true" aria-controls = " " data-state = " open" aria-disabled = " false" class = " relative group rounded-md inline-flex items-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-default ring ring-inset ring-accented focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary pe-9" dir = " ltr" style = " pointer-events: auto;" >
688
- <!--v-if--><span class = " truncate text-dimmed " > </span ><span class = " absolute inset-y-0 end-0 flex items-center pe-2.5" ><svg xmlns = " http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true" role = " img" width = " 1em" height = " 1em" viewBox = " 0 0 16 16" class = " shrink-0 text-dimmed size-5" ></svg ></span >
688
+ <!--v-if--><span class = " truncate pointer-events-none " > </span ><span class = " absolute inset-y-0 end-0 flex items-center pe-2.5" ><svg xmlns = " http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true" role = " img" width = " 1em" height = " 1em" viewBox = " 0 0 16 16" class = " shrink-0 text-dimmed size-5" ></svg ></span >
689
689
</button >
690
690
<!--teleport start-->
691
691
Original file line number Diff line number Diff line change @@ -685,7 +685,7 @@ exports[`SelectMenu > renders with multiple and modelValue correctly 1`] = `
685
685
686
686
exports [` SelectMenu > renders with multiple correctly 1` ] = `
687
687
"<button type = " button" tabindex = " 0" aria-label = " Show popup" aria-haspopup = " listbox" aria-expanded = " true" aria-controls = " " data-state = " open" aria-disabled = " false" class = " relative group rounded-md inline-flex items-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-default ring ring-inset ring-accented focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary pe-9" dir = " ltr" style = " pointer-events: auto;" >
688
- <!--v-if--><span class = " truncate text-dimmed " > </span ><span class = " absolute inset-y-0 end-0 flex items-center pe-2.5" ><span class = " iconify i-lucide:chevron-down shrink-0 text-dimmed size-5" aria-hidden = " true" ></span ></span >
688
+ <!--v-if--><span class = " truncate pointer-events-none " > </span ><span class = " absolute inset-y-0 end-0 flex items-center pe-2.5" ><span class = " iconify i-lucide:chevron-down shrink-0 text-dimmed size-5" aria-hidden = " true" ></span ></span >
689
689
</button >
690
690
<!--teleport start-->
691
691
You can’t perform that action at this time.
0 commit comments