-
Notifications
You must be signed in to change notification settings - Fork 77
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
CalciteInputDatePicker with range sets end date when changing the start date if there's an initial value set #10113
Comments
…#8402) **Related Issue:** #3455, #10113 ## Summary Update `calcite-date-picker` & `calcite-input-date-picker` UI & UX. ![4D1CFC3C-8FF9-4493-9178-4DEDA0417031](https://github.com/user-attachments/assets/4b1f5a12-85df-4577-b1cd-812c22e41ef7) ### Key changes - display two calendars for range irrespective of layout. - No longer switches focus from day to end input when startDate is selected initially. - Month selection is possible via select menu - No longer positions the date-picker component relative to endInput when endInput is focused in range. - Dates from previous months are not visible in range calendar. - Divider indicator icons are removed in horizontal layout for range in input-date-picker. - No longer uses chevron icon which indicate the open status of input-date-picker in startInput field. Other issues resolved : #6321 #6410 #10301 #10291 #10113 #10243 #10490 Blocked issues: #9167 Wiki https://github.com/Esri/calcite-design-system/wiki/date%E2%80%90picker-enhancement-%238402
Installed and assigned for verification. |
Moved to Nov milestone and increased priority at the request of Anvesh because an issue with react surfaced while verifying. |
While solving the issue ,we introduced a new bug with #8402 which affects |
This should be fixed in https://codesandbox.io/p/devbox/input-date-picker-10113-kjynw6 cc @DitwanP , @fnquinteros |
Installed and assigned for verification. |
@anveshmekala I'm not able to verify with the link you provided, I'm getting this on codesandbox: |
Apologies, sandbox is marked as private earlier. Should be accessible now. |
Verified with https://codesandbox.io/p/devbox/input-date-picker-10113-kjynw6 in |
Check existing issues
Actual Behavior
This only happens when there's an initial value set and only on the first input.
When it has an initial value set, setting the start date changes the end date and leaves the start date as it is.
If you refresh and start over, changing the end date first set the start date to null.
After the first value change, the input behaves es axpected.
Expected Behavior
Setting the start or end date for the first time when there's an initial value changes them accordingly and do not change anything else.
Reproduction Sample
https://codesandbox.io/p/devbox/happy-hooks-742ty6?file=%2Fsrc%2FApp.jsx
Reproduction Steps
Reproduction Version
latest (2.11.1)
Relevant Info
Tested on Chrome latest version, on a Macbook. Also ran on code sandbox, so it should happen regardless of OS.
Regression?
No response
Priority impact
impact - p1 - need for current milestone
Impact
At the moment, this can be solved with a workaround by setting the initial value after rendering the component, instead of passing the initial value to the component right away.
We're planning on releasing a redesign of a feature that includes this date picker in October. Would be nice to have it fixed by then.
Calcite package
Esri team
ArcGIS Urban
The text was updated successfully, but these errors were encountered: