Page 1 of 1

calendarpicker crashes edit form

Posted: Mon May 13, 2019 9:31 pm
by driviere
I've been getting this error from the console which crashes any other subsequent JS on the page.
Uncaught TypeError: Cannot read property 'slice' of undefined
I've recognized it only shows this error for odd number IDs or every other line in a list of records.

Re: calendarpicker crashes edit form

Posted: Mon May 13, 2019 9:49 pm
by olton
create your problem code example on codepen.io or sandbox.org.ua

Re: calendarpicker crashes edit form

Posted: Wed May 15, 2019 3:32 pm
by driviere

Re: calendarpicker crashes edit form

Posted: Wed May 15, 2019 3:38 pm
by olton

Re: calendarpicker crashes edit form

Posted: Wed May 15, 2019 4:03 pm
by driviere
The values are stored in the db, should I have to convert the date before displaying because "date-format" doesn't seem to work.

Re: calendarpicker crashes edit form

Posted: Wed May 15, 2019 4:10 pm
by olton
use attribute data-input-format="%d-%m-%y" with your value

Re: calendarpicker crashes edit form

Posted: Wed May 15, 2019 4:24 pm
by driviere
perfect thanks.