Editor gives error with jquery dialog when closing and reopening dialog. Works first time
Editor gives error with jquery dialog when closing and reopening dialog. Works first time
I have a usecase, where I open a dialog by jquery and initialize a datatable in that dialog + an Editor.
For first time it works fine.
But then when I close the dialog and reopn the dialig (without page refresh), editor gives me following error:
dataTables.editor.min.js?browserId=other&languageId=en_US&b=6101&t=1589795470503:6123 Uncaught TypeError: Cannot read property 'oFeatures' of undefined
at Editor._tidy (dataTables.editor.min.js?browserId=other&languageId=en_US&b=6101&t=1589795470503:6123)
at Editor.edit (dataTables.editor.min.js?browserId=other&languageId=en_US&b=6101&t=1589795470503:2786)
at HTMLElement.<anonymous> (discover-ivr:8)
at HTMLTableSectionElement.dispatch (jquery.tools.min2.js:37)
at HTMLTableSectionElement.i (jquery.tools.min2.js:37)
I have tried it with latest 1.9 editor version as well.
And datatable version: jquery.dataTables1.10.5.min.js
Answers
My problem is fixed.
The dialog I was creating was on a div with some id and there were generating many such divs on the same page.
I cleaned that up to have only 1 such div and it fixed the issue