vue-bulma / datepicker

Datepicker Component for Vue Bulma
MIT License
115 stars 56 forks source link

Removed Event Binding #23

Closed Towerful closed 7 years ago

Towerful commented 7 years ago

Not sure if this is due to my recent PR, or if its because I accidentally bumped flatpickr to 2.4.3 when pulling in the new vue-bulma-datepicker. However, I encountered an issue along the lines of node[i] is not a function in flatpickr's triggerEvent function.
Whilst getting to the bottom of it, I removed the datepicker.set('onChange', ...) hook from the components mounted() function. This resolved the issue whilst maintaining proper reactivity

luventa commented 7 years ago

landed in 43ee4d5, Thanks for your PR :)