Skip to content

Commit d192b36

Browse files
author
antoine
committed
Fix datepicker disappear on click
1 parent 364cc75 commit d192b36

File tree

1 file changed

+1
-6
lines changed
  • resources/assets/js/components/form/fields/date

1 file changed

+1
-6
lines changed

resources/assets/js/components/form/fields/date/Date.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
:disabled="readOnly"
88
@input="handleInput"
99
@blur="handleBlur"
10-
@focus="handleFocus"
1110
@keydown.up.prevent="increase"
1211
@keydown.down.prevent="decrease"
1312
ref="input">
@@ -18,7 +17,7 @@
1817
</svg>
1918
</button>
2019
</div>
21-
<b-popover :target="()=>$refs.input" :show.sync="showPicker" container="sharp-app" triggers="" placement="bottom">
20+
<b-popover :target="()=>$refs.input" :show.sync="showPicker" container="sharp-app" triggers="focus" placement="bottom">
2221
<div class="SharpDate__picker position-static">
2322
<template v-if="hasDate">
2423
<sharp-date-picker
@@ -218,12 +217,8 @@
218217
this.$emit('input', null);
219218
},
220219
221-
handleFocus() {
222-
this.showPicker = true;
223-
},
224220
handleBlur() {
225221
this.rollback();
226-
this.showPicker = false;
227222
}
228223
},
229224
mounted() {

0 commit comments

Comments
 (0)