Closed ly525 closed 5 years ago
Describe the bug
Error in v-on handler: "TypeError: slotActivator.querySelector is not a function"
If you want to get the element of the input(or activator) slot, you should use this.$slots.input[0].elm, not this.$slots.input[0]
this.$slots.input[0].elm
this.$slots.input[0]
https://github.com/ly525/v-md-date-range-picker/blob/2ca9e997e1109c5f53411bd08fd4e964793aba5e/src/components/Picker.vue#L241
To Reproduce Steps to reproduce the behavior:
<v-md-date-range-picker> <input type="text" slot="input" /> </v-md-date-range-picker>
Version Info (please complete the following information):
:tada: This issue has been resolved in version 2.5.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Describe the bug
If you want to get the element of the input(or activator) slot, you should use
this.$slots.input[0].elm
, notthis.$slots.input[0]
https://github.com/ly525/v-md-date-range-picker/blob/2ca9e997e1109c5f53411bd08fd4e964793aba5e/src/components/Picker.vue#L241
To Reproduce Steps to reproduce the behavior:
Version Info (please complete the following information):