wffranco / vue-strap

Bootstrap components built with Vue.js
http://wffranco.github.io/vue-strap/
MIT License
338 stars 133 forks source link

Cannot read property 'length' #156

Open arcisd opened 7 years ago

arcisd commented 7 years ago

I obtain a problem using the "datepicker"component:

Cannot read property 'length' of undefined.

Any idea?

Platon79 commented 7 years ago

I also have got this error. It fire in function 'parse' because there is no checking for 'this.val'. When you use null in 'value' prop it return this error. There should be some test at the start of the function. For example something like this: if( !str && !this.val) return new Date();