T00rk / bootstrap-material-datetimepicker

Datepicker for bootstrap-material
http://t00rk.github.io/bootstrap-material-datetimepicker/
MIT License
9 stars 4 forks source link

add container element option for datetimepicker #197

Open Leolima32 opened 6 years ago

Leolima32 commented 6 years ago

Before this commit, I've had a problem adding the datepicker to an input who as inside a dialog element. In chrome, the datepicker was behind dialog and no z-index could put the datepicker on top

datetimebeforedialog

after that I've added an option for the user could choose the element he wants to attach the datepicker making easier to handle such problems. I've added the dialog element as a container and it did work

datetimeafterdialog

The body continues to be de default element for attaching the datepicker. One final word about this. Supplying a container option is kind of default for some datepicker libraries like Pikday