Editor popups showing behind bootstrap modal window
Editor popups showing behind bootstrap modal window
I am using the DataTable + editor in a bootstrap modal window. I can use inline edit with it, but if I set a field to datetime the datetime picker shows up behind the modal window. Also, if i use standard edit or bubble edit those windows show behind the modal as well. It appears to be a z-index issue between bootstrap and the editor; however, I'm having issues resetting the z-index in order to allow them to appear above. It appears that the editor is anchoring to the main page instead of the modal that it's included in. Is there a way to override the z-index of the editor or set it to anchor to the modal window so that the popups show above?
Answers
I had something very similar a while ago. I had to edit the datatables.css file to get it working. Eventually Allan fixed it in the next release.
https://datatables.net/forums/discussion/39293/problem-with-selectize-rendering#latest
"It appears that the editor is anchoring to the main page instead of the modal that it's included in. Is there a way to override the z-index of the editor or set it to anchor to the modal window so that the popups show above?"
Maybe Allan can help you out with a better solution next week. For the time being I could only suggest to override the Editor CSS with your own.
These look like the relevant CSS entries for overriding:
It is almost certainly a z-index issue. This example for Bootstrap 3 appears to work no problem. Have you altered your z-indexes for the Bootstrap modal perhaps?
Can you give me a link to a test page?
Thanks,
Allan