Skip to content

Commit b44bf8b

Browse files
committed
fix(picker): fix #55
1 parent 8a174ac commit b44bf8b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/Picker.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ export default {
238238
togglePicker () {
239239
// ---- fix #53 start ----
240240
let elm = this.$refs.defaultActivator && this.$refs.defaultActivator.$el;
241-
const slotActivator = this.$slots.input && this.$slots.input.length && this.$slots.input[0];
241+
// fix #55: this.$slots.input[0] -> this.$slots.input[0].elm
242+
const slotActivator = this.$slots.input && this.$slots.input.length && this.$slots.input[0].elm;
242243
if (!elm && (slotActivator.querySelector('input') || slotActivator.querySelector('button'))) {
243244
elm = slotActivator;
244245
}
@@ -263,7 +264,7 @@ export default {
263264
} else {
264265
this.pickerVisible = !this.pickerVisible;
265266
}
266-
// ---- fix #53 start ----
267+
// ---- fix #53 end ----
267268
},
268269
pickerStyles () {
269270
return {

0 commit comments

Comments
 (0)