Skip to content

Commit

Permalink
[FSPE-6800] Improved Chi Date value change behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
janibolkvadze committed Dec 22, 2020
1 parent 110349c commit 95a58d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/custom-elements/docs/docs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"timestamp": "2020-12-21T23:14:09",
"timestamp": "2020-12-22T12:02:20",
"compiler": {
"name": "@stencil/core",
"version": "1.8.9",
Expand Down
2 changes: 1 addition & 1 deletion src/custom-elements/src/components/date/date.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class Date {

@Watch('value')
dateChanged(newValue: string, oldValue: string) {
if (newValue !== oldValue) {
if (newValue !== oldValue && (newValue || oldValue)) {
if (newValue) {
this._vm.date = newValue ? dayjs(newValue) : null;
if (this._vm.date && !this._vm.date.isValid()) {
Expand Down

0 comments on commit 95a58d6

Please sign in to comment.