datepicker icon indicating copy to clipboard operation
datepicker copied to clipboard

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

Open KonradDRAST opened this issue 7 years ago • 1 comments

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

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

KonradDRAST avatar Jul 27 '17 10:07 KonradDRAST

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

havgry avatar Aug 05 '17 21:08 havgry