Modal box does not show up on Mobile browsers when editor box is opened
Modal box does not show up on Mobile browsers when editor box is opened
kaustubh.agrawal2000
Posts: 88Questions: 39Answers: 2
in Editor
Hello,
I have a case where there is a button on editor box and on clicking the button a modal box is opened...
Everything is working fine for PC & Tabs but for mobile browsers the modal box is not showing up..
Steps to reproduce...
Go to gadhiya.in
Login
- UNAME: kaustubh.agrawal2012@gmail.com
- PWD : 12345678
goto: https://gadhiya.in/dispatch
Click NEW
Click "Select Sauda" button
No popup is seen..
Any help would be deeply appriciated..
Regards
Kaustubh
This discussion has been closed.
Answers
Seems like for mobile browsers the editor dialog adds a class called
"DTED_Lightbox_Mobile" to body tag and when a modal box is opened it also adds a "modal-open" class to the body tag...
and although the background becomes dark the box itself cannot be seen..
if I remove the editor class "DTED_Lightbox_Mobile" from body tag.. everything works as intended..
Any help on this would be greatly appriciated..
Regards
Kaustubh
What browser and version are you using?
Allan
I have tried it on Android chrome & Iphone safari...
I'm thinking its probably a position:fixed bug, but I've not been able to reproduce it locally yet I'm afraid.
Allan
I see...
BTW, what purpose does this class "DTED_Lightbox_Mobile" serve.. and is it okay if I remove this class dynamically from JS ...?? I mean will it break anything ?
Regards
Kaustubh
It adds a fair amount of CSS to try and make the layout better for mobile browsers, since they generally don't work well with
position:fixed
:I suspect it will be the
div.DTED_Lightbox_Shown
part that is causing problems for you since you are attempting to show another modal at the same time as Editor's, which it wasn't really designed for.Allan