Skip to content

Commit

Permalink
improve date setValue
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Dec 17, 2024
1 parent 51b74e7 commit 33bacb2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@
$componentControl[id] = {
setValue(nvalue: string) {
value = nvalue
if (typeof nvalue === 'string') {
value = nvalue?.split('T')?.[0]
} else {
console.error('Invalid value', nvalue)
value = undefined
}
}
}
Expand Down

0 comments on commit 33bacb2

Please sign in to comment.