Search and Top Navigation
#5658 closed bug (duplicate)
Opened May 25, 2010 10:36PM UTC
Closed October 17, 2012 05:11AM UTC
Datepicker not positioned for only-child hidden inputs
Reported by: | andyfowler | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.11.0 |
Component: | ui.datepicker | Version: | 1.8.1 |
Keywords: | hidden | Cc: | |
Blocked by: | Blocking: |
Description
When a datepicker is applied to a hidden input, datepicker._findPos() tries to seek for the next visible sibling. If there are no siblings, it fails.
Pseudocode example:
<div><input id="date-me" type="hidden datepicker">Asdf</div> <script> $('#date-me').datepicker(); </script>
Yields a non-positioned datepicker. I've patched this on my Github fork. As soon as I get a ticket ID here, I'll post a link.
Attachments (1)
Change History (5)
Changed May 25, 2010 10:42PM UTC by comment:1
Changed May 25, 2010 10:51PM UTC by comment:2
Amended commit message per style guide :)
http://github.com/andyfowler/jquery-ui/commit/9be9dc37fff1635d8c611cae86eb31f4dea272c3
Changed August 01, 2011 05:58PM UTC by comment:3
wish i saw this sooner. is this patch supposed to be in place as I still see the problem as of 1.8.14
Changed October 11, 2012 09:04PM UTC by comment:4
milestone: | TBD → 1.11.0 |
---|
Pull from github: http://github.com/andyfowler/jquery-ui/commit/9e4071220a4b2e09c5d85825394c8689f66510cf