Skip to content

Commit 30b579f

Browse files
committed
Datepicker: Unescape double escaped ids when handling events. Fixes #8480 - Datepicker 1.8.22 escaped id does not work.
1 parent 485ca71 commit 30b579f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.datepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,7 @@ $.extend(Datepicker.prototype, {
14141414
*/
14151415
_attachHandlers: function(inst) {
14161416
var stepMonths = this._get(inst, 'stepMonths');
1417-
var id = '#' + inst.id;
1417+
var id = '#' + inst.id.replace( /\\\\/g, "\\" );
14181418
inst.dpDiv.find('[data-handler]').map(function () {
14191419
var handler = {
14201420
prev: function () {

0 commit comments

Comments
 (0)