Skip to content

Commit

Permalink
Merge pull request #390 from helsingborg-stad/fix/datepicker
Browse files Browse the repository at this point in the history
Fix/datepicker
  • Loading branch information
jonatanhanson authored Jul 7, 2021
2 parents 62593fa + 4425ab3 commit 3d727a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/js/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const addDatepickers = (target = document) => {
datepickers.forEach(element => {
const datepicker = new TheDatepicker.Datepicker(element);

datepicker.options.setInputFormat('j/n/Y');
datepicker.options.setInputFormat('Y-m-d');
datepicker.options.setTitle(element.getAttribute('c-datepicker-title'));
datepicker.options.setDaysOutOfMonthVisible(
element.getAttribute('c-datepicker-showdaysoutofmonth')
Expand All @@ -27,7 +27,7 @@ const addDatepickers = (target = document) => {
}


//Add new datepickers to JS
// Add new datepickers to JS
const observer = new MutationObserver((mutationsList, observer) => {
for(const mutation of mutationsList) {
if (mutation.type === 'childList') {
Expand Down
2 changes: 1 addition & 1 deletion source/sass/component/_date-picker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@

.c-datepicker__container {
position: absolute;
z-index: 2000;
z-index: $level-9;
left: 50%;
transform: translate(-50%);
}

0 comments on commit 3d727a0

Please sign in to comment.