ly525 / material-vue-daterange-picker

a date-range-picker follows the Material Design spec powered by vue.js (alpha)
https://ly525.github.io/material-vue-daterange-picker/
MIT License
73 stars 20 forks source link

[Bug Report] TypeError: slotActivator.querySelector is not a function #55

Closed ly525 closed 5 years ago

ly525 commented 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]

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):

ly525 commented 5 years ago

:tada: This issue has been resolved in version 2.5.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: