Skip to content

Commit

Permalink
fix: handling of empty values in NcDateTimePickerNative
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
st3iny committed Sep 21, 2023
1 parent 336f929 commit 141c9e4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- @copyright Copyright (c) 2022 Julia Kirschenheuter <[email protected]>
-
- @author Julia Kirschenheuter <[email protected]>
- @author Richard Steinmetz <[email protected]>
-
- @license GNU AGPL version 3 or any later version
-
Expand Down Expand Up @@ -166,7 +167,7 @@ export default {
*/
value: {
type: Date,
required: true,
default: null,
},
/**
Expand Down Expand Up @@ -265,7 +266,7 @@ export default {
*
* @return {string} empty string
*/
return this.$emit('input', '')
return this.$emit('input', null)
}
if (this.type === 'time') {
const time = $event.target.value
Expand Down

0 comments on commit 141c9e4

Please sign in to comment.