formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

Cannot create property 'keyCode' on boolean 'false' from choices.js 7.0.0

Open Vedhachala opened this issue 7 years ago • 2 comments

Hi,

I recently upgraded formiojs from 3.8.0 to 3.20.16 , I see this error while clicking any select dropdown.

choices js error

I also see the styles are improper for select fields.

selectStyle

Any idea why this might happen.? Thank you

Vedhachala avatar May 22 '19 05:05 Vedhachala

The issue with styling is that you may not be including the choices.js css files. You will need those to have the proper styling. The error may be that an older version of choices.js is still installed. Can you verify that it is the correct version?

randallknutson avatar May 22 '19 14:05 randallknutson

Thanks! Importing the styles from "node_modules/choices.js/public/assets/styles/choices.css" in angular.json, fixed both the errors. @randallknutson yes the correct version is installed. although while using formiojs 3.8.0, the styles were proper even without adding choices.js styles

Vedhachala avatar May 24 '19 06:05 Vedhachala