-
Notifications
You must be signed in to change notification settings - Fork 152
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Version
- Vue: 3.2.37
- multiselect: 2.5.8
- nuxt: 3.0.0
Description
When I try to use custom caret the handleCaretClick
does not work.
<template #caret>
<span
aria-hidden="true"
@click="handleCaretClick"
>
<nuxt-icon
:name="`arrow_down${isSortBy() ? '_small' : ''}`"
:class="[
{'dropdown-single-select__icon--up': multiselect?.isOpen}
]"
/>
</span>
</template>
<script setup lang="ts">
const multiselect = ref<MultiselectRef>();
const handleCaretClick = ref();
onMounted(() => {
handleCaretClick.value = (multiselect.value as any)?.handleCaretClick
});
</script>
It opens and closes the options list immediately. If I hold the button (mouseDown) the list stays open, as soon as I release it (mouseUp) the list closes.
mushegov
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working