-
Notifications
You must be signed in to change notification settings - Fork 184
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
fix(DateRangeInput): Treat array of nulls as empty value to set start date on click #6215
fix(DateRangeInput): Treat array of nulls as empty value to set start date on click #6215
Conversation
size-limit report 📦
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 6102b21:
|
e2e tests |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #6215 +/- ##
==========================================
+ Coverage 81.07% 81.14% +0.07%
==========================================
Files 324 324
Lines 10090 10091 +1
Branches 3385 3386 +1
==========================================
+ Hits 8180 8188 +8
+ Misses 1910 1903 -7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
👀 Docs deployed
Commit 6102b21 |
Fix Storybook examples to make them interactive
d961317
to
2c2cb9e
Compare
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.
👏 👏 👏
… date on click (#6215) - Правим пример в сторибуке, чтобы DateRangeInput реагировал на изменения дат. - исправляем поведение при выборе даты, если value={[null, null]}. В этом случае onChange возвращал всегда [null, null], что бы мы не выбрали в DateRangeInput. Временное решение без этого фикса это передавать `undefined`. Будет актуально для v5, если не выпустим там патч. - Меняем тип value c Array на Tuple, так как value может содержать только два элемента.
… date on click (#6215) (#6404) - Правим пример в сторибуке, чтобы DateRangeInput реагировал на изменения дат. - исправляем поведение при выборе даты, если value={[null, null]}. В этом случае onChange возвращал всегда [null, null], что бы мы не выбрали в DateRangeInput. Временное решение без этого фикса это передавать `undefined`. Будет актуально для v5, если не выпустим там патч. - Меняем тип value c Array на Tuple, так как value может содержать только два элемента.
… date on click (#6215) (#6404) - Правим пример в сторибуке, чтобы DateRangeInput реагировал на изменения дат. - исправляем поведение при выборе даты, если value={[null, null]}. В этом случае onChange возвращал всегда [null, null], что бы мы не выбрали в DateRangeInput. Временное решение без этого фикса это передавать `undefined`. Будет актуально для v5, если не выпустим там патч. - Меняем тип value c Array на Tuple, так как value может содержать только два элемента.
Изменения
Временное решение без этого фикса это передавать
undefined
. Будет актуально для v5, если не выпустим там патч.