Ticket #8464 (closed bug: fixed)

Opened 10 months ago

Last modified 10 months ago

Datepicker does not properly scope the body selector

Reported by: maspwr Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.datepicker Version: 1.8.21
Keywords: Cc:
Blocking: Blocked by:

Description

When initializing the date picker, jQuery UI looks for the <body> element to append the '#ui-datepicker-div' element to. This lookup is performed using $(document).find('body') [jquery.ui.datepicker.js:1699]. Unfortunately this could return multiple <body> elements which will break the date picker functionality. Take, for example, the case when using the <foreignobject> element to render content within an <svg> element ( http://www.w3.org/TR/SVG/extend.html).

Change History

comment:1 Changed 10 months ago by maspwr

comment:2 Changed 10 months ago by Mark Aaron Shirley

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

Datepicker: Changed body selector to document.body. Fixed #8464 - Datepicker does not properly scope the body selector.

Changeset: 1626c97caa920d72d0bb7501b240e64538ed41cd

Note: See TracTickets for help on using tickets.