refactor: improved syntax for preventDefault() call
This commit is contained in:
parent
b04b67f148
commit
b1b58df0bf
@ -96,13 +96,11 @@ const hasValue = computed(() => {
|
||||
:username="selectedItem.name"
|
||||
/>
|
||||
</Button>
|
||||
<!-- NOTE: Without @click.prevent, the dropdown does not behave as expected when used inside a <label> tag. -->
|
||||
<div
|
||||
:class="{ 'dropdown-pane--open': showSearchDropdown }"
|
||||
class="dropdown-pane"
|
||||
@click="
|
||||
// NOTE: Without this, the dropdown does not behave as expected when used inside a <label> tag.
|
||||
event => event.preventDefault()
|
||||
"
|
||||
@click.prevent
|
||||
>
|
||||
<div class="flex items-center justify-between mb-1">
|
||||
<h4
|
||||
|
||||
Loading…
Reference in New Issue
Block a user