Skip to content

Commit e3e9a9d

Browse files
committed
fix: root-click not needed with input slot (fixes #973)
1 parent 6993cd9 commit e3e9a9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VueDatePicker/components/DatepickerInput.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div @click="handleOpen">
2+
<div @click="(e) => !$slots['dp-input'] && handleOpen(e)">
33
<slot v-if="$slots.trigger && !$slots['dp-input'] && !defaultedInline.enabled" name="trigger" />
44
<div v-if="!$slots.trigger && (!defaultedInline.enabled || defaultedInline.input)" class="dp__input_wrap">
55
<slot

0 commit comments

Comments
 (0)