Ticket #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: | |
| Blocking: | Blocked by: |
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
Change History
Changed 3 years ago by andyfowler
-
attachment
0001-fixes-5658-bad-positioning-for-only-child-hidden-inp.patch
added
comment:2 Changed 3 years ago by andyfowler
Amended commit message per style guide :) http://github.com/andyfowler/jquery-ui/commit/9be9dc37fff1635d8c611cae86eb31f4dea272c3
Note: See
TracTickets for help on using
tickets.

