Opened 13 years ago
Closed 10 years ago
#5658 closed bug (duplicate)
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 (6)
Changed 13 years ago by
Attachment: | 0001-fixes-5658-bad-positioning-for-only-child-hidden-inp.patch added |
---|
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Amended commit message per style guide :) http://github.com/andyfowler/jquery-ui/commit/9be9dc37fff1635d8c611cae86eb31f4dea272c3
comment:3 Changed 12 years ago by
wish i saw this sooner. is this patch supposed to be in place as I still see the problem as of 1.8.14
comment:4 Changed 10 years ago by
Milestone: | TBD → 1.11.0 |
---|
Note: See
TracTickets for help on using
tickets.
Pull from github: http://github.com/andyfowler/jquery-ui/commit/9e4071220a4b2e09c5d85825394c8689f66510cf