[Bug] Buttons Extension: Copy confirmation not visible if datatable exists in element

[Bug] Buttons Extension: Copy confirmation not visible if datatable exists in element

shelljshellj Posts: 4Questions: 0Answers: 0
edited February 27 in Free community support

Link to test case: https://jsfiddle.net/shellj/461yrope/8/
Description of problem: z-index doesn't work with the <dialog> element because it is in its own layer, separate from the rest of the DOM. This copy confirmation needs to be revisited to work with <dialog> elements.

Replies

  • shelljshellj Posts: 4Questions: 0Answers: 0

    For some reason my jsfiddle is not saving the changes I made. that link is a previous version that does not demo the issue properly. I am currently working on fixing this.

  • kthorngrenkthorngren Posts: 21,840Questions: 26Answers: 5,049

    I would suggest using the Resources option to load all the dependencies and leave the Javascript tab just for the Datatables code. This way its easier for us to debug without a lot of code in the way.

    Kevin

  • shelljshellj Posts: 4Questions: 0Answers: 0

    Thanks Kthorngren for the suggestion. I have updated the test case: https://jsfiddle.net/shellj/461yrope/8/

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

    That's a good one. The modal is top-layer and thus higher than any z-index for content that is attached to the body, which my little modal saying that the copy has been done is.

    A workaround is to use .show() rather than .showModal(). That will show the modal "modelessly".

    Updated example.

    Allan

  • shelljshellj Posts: 4Questions: 0Answers: 0

    Thank you for the workaround. I will have to look into this to see how it works with my application.

Sign In or Register to comment.