Skip to content

Commit

Permalink
fix: getAttribute type
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Mar 8, 2024
1 parent 6e6663d commit 17545c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/getValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const getValue = (element) => {
optionValue = prefix + optionValue + suffix;
value.push(optionValue);
}
} else if (["time", "date", "datetime", "datetime-local"].includes(element.type)) {
} else if (["time", "date", "datetime", "datetime-local"].includes(element.getAttribute('type'))) {
if (value === '$now')
value = new Date()
else if (value)
Expand Down

0 comments on commit 17545c2

Please sign in to comment.