Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The popup datepicker positions itself behind checkboxes #9

Open
bjartekv opened this issue Feb 8, 2014 · 9 comments
Open

The popup datepicker positions itself behind checkboxes #9

bjartekv opened this issue Feb 8, 2014 · 9 comments

Comments

@bjartekv
Copy link

bjartekv commented Feb 8, 2014

The popup datepicker positions itself behind checkboxes. Seems that this should be fixable by forcing a higher z-index on the datepicker div. But maybe there is a better way already built into jquery mobile?

croppercapture 2

http://jsbin.com/uzaret/1292/edit

@indrimuska
Copy link
Contributor

The label of the checkbox has z-index=2, so there's no other way to fix it.
You have to change the z-index of the datepicker to 2 or the z-index of the checkbox to 1.
I prefer the first solution.

@arschmitz
Copy link
Owner

There is a datepicker_getZindex function in the ui datepicker which is supposed to ensure it has the proper z-index to show above anything else on the page. For some reason its failing to properly calculate here. working on figuring out why.

@bjartekv
Copy link
Author

bjartekv commented Feb 9, 2014

Thanks for looking into it. The datepicker_getZindex function seems to work correctly though if a parent element is absolutly positioned such as in the case with a datepicker inside popup http://jsbin.com/uzaret/1298/edit.

@arschmitz
Copy link
Owner

still working on a workaround for this

@jecole
Copy link

jecole commented May 22, 2014

Any updates on this? It appears to be an issue with radio buttons too. I have tried various workarounds with the z-index to no avail...Thanks!

@bjartekv
Copy link
Author

The workaround proposed by indrimuska is the best solution I've found so far. http://jsbin.com/uzaret/1925/edit

@amarkarian
Copy link

set the z-index to a high value. in my case this solved the issue.

#ui-datepicker-div { z-index: 9999 !important; }

@arschmitz
Copy link
Owner

@amarkarian yes thats the best solution at the moment

@amarkarian
Copy link

hint: if you want to avoid keyboard popup on iPad, just add onfocus="this.blur();" attribute to the input like this
<input data-role="date" type="text" onfocus="this.blur();" ...

@alexander: Another topic; in some - not reproducable cases - the current year turns after clicking the < button to 1800. Any Idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants