Skip to content

Commit

Permalink
normalize min and max
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasnteireho committed Feb 13, 2024
1 parent deb6ae9 commit 9bb801a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mobile/pages/fields/field/field.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,10 @@ export const FieldVM = DefineMap.extend('FieldVM', {



if (Date.parse(value) < Date.parse(field.min)){
if (Date.parse(value) < Date.parse(normalizeDateInput(field.min))){
console.log("smaller")
value = field.min
} else if (Date.parse(value) > Date.parse(field.max)){
} else if (Date.parse(value) > Date.parse(normalizeDateInput(field.max))){
console.log("bigger")
value = field.max
}
Expand Down

0 comments on commit 9bb801a

Please sign in to comment.