-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Added a clear/reset button in InternalDateInput to reset/unschedule events #3154
Conversation
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.
...twenty-front/src/modules/ui/input/components/internal/date/components/InternalDatePicker.tsx
Outdated
Show resolved
Hide resolved
...twenty-front/src/modules/ui/input/components/internal/date/components/InternalDatePicker.tsx
Show resolved
Hide resolved
...twenty-front/src/modules/ui/input/components/internal/date/components/InternalDatePicker.tsx
Outdated
Show resolved
Hide resolved
...twenty-front/src/modules/ui/input/components/internal/date/components/InternalDatePicker.tsx
Outdated
Show resolved
Hide resolved
...twenty-front/src/modules/ui/input/components/internal/date/components/InternalDatePicker.tsx
Outdated
Show resolved
Hide resolved
...twenty-front/src/modules/ui/input/components/internal/date/components/InternalDatePicker.tsx
Outdated
Show resolved
Hide resolved
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
...twenty-front/src/modules/ui/input/components/internal/date/components/InternalDatePicker.tsx
Show resolved
Hide resolved
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.
There's a TS error in ObjectFilterDropdownDateSearchInput.tsx, which should handle null value, I fixed it because it's complex to know how to handle it.
@@ -79,6 +80,8 @@ export const DateInput = ({ | |||
hotkeyScope, | |||
}); | |||
|
|||
const { clearable } = useDateTimeField(); |
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.
This call should be made at the DateFieldInput level and drill down the clearable props to DateInput which doesn't know about field related logic.
Fixes: #3086
Changes: Added a clear button to change the value of Date to null also made changes in typeguard functions to accept null as a datetime value
VEED.CREATE.Edit.video.mp4