-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: set default type of datetime to null #235
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
if (value === '') { | ||
value = null; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there is any difference, but is there a reason why we handle it like this instead of doing
$: if(!value){
value = null
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ArmanNik I tried it, but on doing this, for some reason the update button stops working. It does not detect a change in the input field that way
Screen.Recording.2023-01-16.at.9.04.41.PM.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahaahahahah got it 💪 that's a very weird behavior 😆
What does this PR do?
Before
Screen.Recording.2023-01-16.at.11.54.51.AM.mov
After
Screen.Recording.2023-01-16.at.11.55.20.AM.mov
Before
Screen.Recording.2023-01-16.at.7.43.45.PM.mov
After
Screen.Recording.2023-01-16.at.7.42.49.PM.mov
Test Plan
Existing tests
Related PRs and Issues
(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)
Have you read the Contributing Guidelines on issues?
(Write your answer here.)