Editor - Select2

Editor - Select2

ZakInterDevZakInterDev Posts: 51Questions: 16Answers: 0

Hi Allan

So the problem is when I haven't selected anything on my select2 and I try submit the form, it simply hangs and doesn't let the user do anything else. Even clicking outside the editor window to close it, the user is unable to reopen the editor window.

The error that appears in the console is: jquery.dataTables.min.js:19 - Uncaught TypeError: Cannot read property 'length' of null

I've looked for solutions into this problem but I'm unable to find anything. As the error occurs in jquery.dataTables.min.js, I think this is a bug within dataTables and not so much select2.

Could you confirm this is a bug, or is there a fix I've missed?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,743Questions: 1Answers: 10,111 Site admin
    Answer ✓

    Are you able to give me a link to the page so I can debug it please.

    Thanks,
    Allan

  • ZakInterDevZakInterDev Posts: 51Questions: 16Answers: 0

    Apologies for the late reply. I've sent you a PM with a link to the site. If we come up with a solution, I'll post it here later.

  • ZakInterDevZakInterDev Posts: 51Questions: 16Answers: 0

    Scratch that, updated to the new editor.select2.min.js file. Issue seems to be fixed.

  • allanallan Posts: 61,743Questions: 1Answers: 10,111 Site admin

    Thanks for the update - good to hear that addresses the issue!

    Regards,
    Allan

This discussion has been closed.