Skip to content

Commit 5fb6d26

Browse files
committed
ACP2E-3097: Datepicker for product with multiple Customizable Options with date fields not working when placing order from admin
1 parent 8457b61 commit 5fb6d26

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/web/mage/calendar.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ define([
8181
);
8282
this._initPicker(this.element);
8383
this._overwriteGenerateHtml();
84+
this._overwriteFindPos();
8485
},
8586

8687
/**
@@ -101,6 +102,13 @@ define([
101102
}
102103
},
103104

105+
_overwriteFindPos: function () {
106+
$.datepicker.constructor.prototype._findPos = function (obj) {
107+
let domPosition = obj.getBoundingClientRect();
108+
return [domPosition.left, domPosition.top];
109+
}
110+
},
111+
104112
/**
105113
* Wrapper for overwrite jQuery UI datepicker function.
106114
*/

0 commit comments

Comments
 (0)