Skip to content

Commit db5f651

Browse files
authored
Merge pull request #975 from JohnCampionJr/fix-click
fix: root-click not needed with input slot (fixes #973)
2 parents 6993cd9 + e3e9a9d commit db5f651

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)