Skip to content

Commit 17545c2

Browse files
committed
fix: getAttribute type
1 parent 6e6663d commit 17545c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/getValue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const getValue = (element) => {
7979
optionValue = prefix + optionValue + suffix;
8080
value.push(optionValue);
8181
}
82-
} else if (["time", "date", "datetime", "datetime-local"].includes(element.type)) {
82+
} else if (["time", "date", "datetime", "datetime-local"].includes(element.getAttribute('type'))) {
8383
if (value === '$now')
8484
value = new Date()
8585
else if (value)

0 commit comments

Comments
 (0)