Ticket #5658 (closed bug: duplicate)

Opened 3 years ago

Last modified 7 months ago

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

comment:2 Changed 3 years ago by andyfowler

comment:3 Changed 22 months ago by brazir

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 7 months ago by scott.gonzalez

  • Milestone changed from TBD to 1.11.0

comment:5 Changed 7 months ago by mikesherov

  • Status changed from new to closed
  • Resolution set to duplicate

Duplicate of #6988.

Note: See TracTickets for help on using tickets.