This repository was archived by the owner on Mar 27, 2025. It is now read-only.
File tree 1 file changed +6
-3
lines changed
packages/bootstrap-vue-next/src/components/BDropdown
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 22
22
:variant =" variant"
23
23
:size =" size"
24
24
:disabled =" disabled"
25
- :class =" toggleClass"
25
+ :class =" [ toggleClass, ...[modelValueBoolean ? 'show' : undefined]] "
26
26
class =" dropdown-toggle-split dropdown-toggle"
27
- aria-expanded =" false"
27
+ :aria-expanded =" modelValueBoolean"
28
+ aria-haspopup =" menu"
28
29
@click =" onButtonClick"
29
30
>
30
31
<span class =" visually-hidden" >
@@ -230,6 +231,7 @@ const buttonClasses = computed(() => [
230
231
' dropdown-toggle' : ! splitBoolean .value ,
231
232
' dropdown-toggle-no-caret' : noCaretBoolean .value && ! splitBoolean .value ,
232
233
' w-100' : splitBoolean .value && blockBoolean .value ,
234
+ ' show' : splitBoolean .value ? undefined : modelValueBoolean .value ,
233
235
},
234
236
])
235
237
@@ -241,7 +243,8 @@ const dropdownMenuClasses = computed(() => [
241
243
])
242
244
243
245
const buttonAttr = computed (() => ({
244
- ' aria-expanded' : splitBoolean .value ? undefined : false ,
246
+ ' aria-expanded' : splitBoolean .value ? undefined : modelValueBoolean .value ,
247
+ ' aria-haspopup' : splitBoolean .value ? undefined : ' menu' ,
245
248
' href' : splitBoolean .value ? props .splitHref : undefined ,
246
249
' to' : splitBoolean .value && props .splitTo ? props .splitTo : undefined ,
247
250
}))
You can’t perform that action at this time.
0 commit comments