initComplete event not fired because of an error

initComplete event not fired because of an error

mdellanave83mdellanave83 Posts: 42Questions: 3Answers: 0

Hi, I'm struggling with an error I can't understand

If the error is logged in console, the initComplete event doesn't get fired.

Looking at dataTables.min code, I see 2 executions of this code

the first time it seems to be ok ~~~~even if o[0] is undefined

the second time the array o contains the div.dt-autosize

but then comes the error

I noticed also multiple dataTables_Table_[n]_wrapper

that lead into this

It seems there are more nested dataTables, is it right?

I have also this kind of error

during the iteration on colums

that provokes the behavior in the video

@allan do you have some idea?

Replies

  • allanallan Posts: 64,698Questions: 1Answers: 10,698 Site admin

    I'd need a link to a page showing the error to be able to debug it. Also what browser, version and OS are you using?

    For all that it is shown as an error, it is actually a warning. It is also async to the main "thread" so it shouldn't stop initComplete from firing. Again, I'd need a test case to help in that regard.

    Allan

  • mdellanave83mdellanave83 Posts: 42Questions: 3Answers: 0

    Hi @allan it's a complex scenario to reproduce in some codesandbox, I can tell you that adding some line of codes to dataTables.js it resolves my issues.


    do you think you can fix the actual release with this fixes?

  • allanallan Posts: 64,698Questions: 1Answers: 10,698 Site admin

    I'd need to be able to see the error, understand why it is failing with the current code and how the patch fixes it before I can commit it in.

    Allan

Sign In or Register to comment.