fix: wrapped button
This somehow weirdly fixes the test. I have no clue why. Regardless it should be better than before, because a button (DropdownItem) should never contain another interactive element (the setBucketLimit input and save button). The test failed because I replaced a v-if with v-show. I do not know _why_ this made the test fail. When I reproduced the test step by step it worked for me…
This commit is contained in:

committed by
konrad

parent
faa797f461
commit
af639a180c
@ -2,6 +2,7 @@
|
||||
<div
|
||||
ref="dropdown"
|
||||
class="dropdown"
|
||||
@pointerenter="initialMount = true"
|
||||
>
|
||||
<slot
|
||||
name="trigger"
|
||||
@ -22,6 +23,7 @@
|
||||
|
||||
<CustomTransition name="fade">
|
||||
<div
|
||||
v-if="initialMount || open"
|
||||
v-show="open"
|
||||
class="dropdown-menu"
|
||||
>
|
||||
@ -49,6 +51,8 @@ defineProps({
|
||||
})
|
||||
const emit = defineEmits(['close'])
|
||||
|
||||
|
||||
const initialMount = ref(false)
|
||||
const open = ref(false)
|
||||
|
||||
function close() {
|
||||
|
Reference in New Issue
Block a user