Skip to content

Commit

Permalink
fix: clicking the Today button in the date editor had no effect (#1092)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sky-FE authored Nov 18, 2024
1 parent ca76960 commit fe4986f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/sdk/src/components/editor/date/EditorMain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const DateEditorMainBase: ForwardRefRenderFunction<IEditorRef<string>, IDateEdit
const val = nowDate || date;

if (value == val) return;
setDate(val);
onChange?.(val);
};

Expand Down

0 comments on commit fe4986f

Please sign in to comment.