SSR not supported
wilk opened this issue · 1 comments
wilk commented
Missing support for Server Side Rendering: this is due to this issue vue-bulma/click-outside#5 (vue-bulma-click-outside dep).
Following a workaround:
data() {
return {
datepickerVisible: false
}
},
beforeMount() {
this.$options.components.Datepicker = require('vue-bulma-datepicker')
setTimeout(() => {this.datepickerVisible = true},0)
}
And then, inside the HTML template:
<p class="control" v-if="datepickerVisible">
<datepicker :inputClass="{ test: true }" v-model="myDateModel"></datepicker>
</p>
luventa commented
Fix SSR error.