Skip to content

Commit

Permalink
Merge pull request #18998 from abpframework/issue-18985-patch
Browse files Browse the repository at this point in the history
Fix datepicker firefox problem
  • Loading branch information
EngincanV authored Feb 13, 2024
2 parents bfdb8a8 + f72360d commit 69ee68c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@

options.singleDatePicker = singleDatePicker;

var $modal = $datePickerElement.closest('.modal.fade');

var defaultOptions = {
showDropdowns: true,
opens: "center",
Expand All @@ -336,7 +338,8 @@
clearLabel: abp.localization.localize('Clear', 'AbpUi'),
applyLabel: abp.localization.localize('Apply', 'AbpUi'),
},
singleOpenAndClearButton: true
singleOpenAndClearButton: true,
parentEl: $modal.length > 0 ? $modal : 'body'
};
var locale = defaultOptions.locale;
$.extend(options, defaultOptions);
Expand Down

0 comments on commit 69ee68c

Please sign in to comment.