Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82801

Editor "datatable" field type depends on Select extension. Bug or a feature?

$
0
0

Error messages shown:
Dev console says: "Uncaught TypeError: Cannot read properties of undefined (reading 'init')" in dataTables.editor.js:5598
This is on statement: "DataTable$4.select.init(api);"

Description of problem:
Seems like "datatable" Editor field type needs Select extension loaded to init Editor instance, even when not using any select functionality at all.
I use simple click on table row (or icons for example) to open editor. Inside editor, datatable field is pure read-only table of child records with no select functionality either. Just spent entire day trying to figure out why I get this error while folloowing all exmaples and discussions.

Proposed solution:
Either refactor Editor to depend on Select only when needed, or add warning to documentation and examples using this functionality


Viewing all articles
Browse latest Browse all 82801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>