Opened 7 years ago

Closed 7 years ago

#8464 closed bug (fixed)

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:
Blocked by: Blocking:

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 (2)

comment:2 Changed 7 years ago by Mark Aaron Shirley

Resolution: fixed
Status: newclosed

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.