Search code examples
datatablesdatatables-1.10bootboxyadcf

Uncaught TypeError: Cannot read property 'oSavedState' of undefined with yadcf and DataTable in Bootbox


I have a bootbox dialog for a user to select templates. The template list is loaded via ajax in DataTables and yadcf is added for fancy filtering. First open of the dialog works flawlessly, close the dialog and open it again and it fails in the yadcf library on

function initColReorder2(settingsDt, table_selector_jq_friendly)

I have created an example illustrating this https://jsfiddle.net/mrcrbrown/7gtps9n5/11/ Click the button to open the dialog, close the dialog with the X and then attempt to open it again.

I noticed the failure occurs before the datatables goes to get the data. I should be able to open and close the dialog as many times as I like as a user.

This question is similar to https://stackoverflow.com/questions/34359479/uncaught-typeerror-cannot-read-property-osavedstate-of-undefined-with-yadcf-a which has the same error in the same place but no answer or example posted.


Solution

  • Go grab 0.9.0.beta.5 it works now, see live sample.

    .