Inline editing column with type date/time throws error
Inline editing column with type date/time throws error
This error also occurs in your example below: (watch javascript console)
https://editor.datatables.net/examples/inline-editing/submitButton.html
Basically when editing a column inline that has the fields type set as 'datetime' an error occurs when the field gains focus.
"dataTables.editor.min.js:131 Uncaught ReferenceError: val is not defined"
This seems to 'interrupt' the event cycle so the only way to clear focus/remove the input field is to tap escape while selected on the field.
Is there a work around for this?
Thank you!
This question has an accepted answers - jump to answer
Answers
Hi,
Sorry about that - there is an error in the 1.5.2 code. If you search for
conf._picker.owns( val );
and replace with:that will address the issue.
I'm going to issue Editor 1.5.3 - probably next week, which will include this fix.
Regards,
Allan
Awesome! Thanks a ton, I really appreciate the wealth of documentation and your dedication to this fantastic product!
Also, I had modified the minified version that comes via the generator. So for anyone else who attempts to do so, I changed:
a._picker.owns(val)
to
a._picker.owns(g)
I just walked through the letters of the alphabet until it worked, you might have to do the same....