Skip to content

Commit b92965a

Browse files
committed
Datepicker: Unescape double escaped ids when handling events. Fixes #8480 - Datepicker 1.8.22 escaped id does not work.
(cherry picked from commit 30b579f)
1 parent 25f20b1 commit b92965a

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
@@ -1408,7 +1408,7 @@ $.extend(Datepicker.prototype, {
14081408
*/
14091409
_attachHandlers: function(inst) {
14101410
var stepMonths = this._get(inst, 'stepMonths');
1411-
var id = '#' + inst.id;
1411+
var id = '#' + inst.id.replace( /\\\\/g, "\\" );
14121412
inst.dpDiv.find('[data-handler]').map(function () {
14131413
var handler = {
14141414
prev: function () {

0 commit comments

Comments
 (0)