Datatables and Editor problem with Bootstrap 4 with buttons collection (create or edit new line)

Datatables and Editor problem with Bootstrap 4 with buttons collection (create or edit new line)

sloloslolo Posts: 33Questions: 6Answers: 0

Link to test case: http://live.datatables.net/netarege/1/edit
Debugger code (debug.datatables.net):
Error messages shown: No error message
Description of problem: Hello,

There is a behavior which cause problem when using Bootstrap 4 / Buttons collection and Editor.
As you can see on test case, if you click on "New" button", the modal open without problem.
But if you click on "New" in sub menu, the modal is open BUT the sub menu stay opened (in front of the modal)
If you click again on "New" or "Edit" button (if a line is selected), there is no way to close the modal.

Are you able to reproduce it?
I hope you could fix it in the next release.

Thanks in advance for your help and have a nice day.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583
    Answer ✓

    You can use autoClose here - it's one of the properties for the collection,

    autoClose: true,
    

    Please see your updated example here,

    Colin

  • sloloslolo Posts: 33Questions: 6Answers: 0

    Hi colin,

    Really nice, I haven't seen it, sorry.
    It works very well.
    Thank you very much.

Sign In or Register to comment.