Skip to content

Commit

Permalink
CR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AzizKHAN030 committed Jun 23, 2022
1 parent 34e1cd4 commit 4988737
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/view/adminhtml/web/js/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ require(['jquery'], ($) => {
$(window).on('load', () => {
const show = $.datepicker._showDatepicker;
if (show) {
const datePicker = $($.datepicker.dpDiv[0]);
const datePicker = $.datepicker.dpDiv;

$.extend($.datepicker, {
_showDatepicker: (trigger) => {
show(trigger);

if ($(trigger).parents('.modal-slide').length > 0) {
datePicker.css('top', `${datePicker.height() - 25}px`);
const { top, height } = trigger.getBoundingClientRect();
datePicker.css('top', top + height);
}
},
});
Expand Down

0 comments on commit 4988737

Please sign in to comment.