vue-bulma / datepicker

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

[Vue warn]: Invalid prop: type check failed for prop "inputClass". Expected Object, got Array. #63

Open KonradDRAST opened 7 years ago

KonradDRAST commented 7 years ago

Why there is object expected? How you suppose to build it?

My current datepicker setup: :inputClass="['classOne', 'classTwo']"

havgry commented 7 years ago

The value of the inputClass prop is passed to the :class binding, so yes it should accept an object or an array, but if you just want to pass static classes you can simply use the regular class attribute: https://vuejs.org/v2/guide/class-and-style.html#With-Components