-
Notifications
You must be signed in to change notification settings - Fork 75
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
Input date picker with range ignores valueAsDate parameter #5207
Labels
4 - verified
Issues that have been released and confirmed resolved.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
Milestone
Comments
arjanvanzutphen
added
0 - new
New issues that need assignment.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
needs triage
Planning workflow - pending design/dev review.
labels
Aug 23, 2022
jcfranco
added
1 - assigned
Issues that are assigned to a sprint and a team member.
and removed
needs triage
Planning workflow - pending design/dev review.
0 - new
New issues that need assignment.
labels
Sep 6, 2022
github-actions
bot
modified the milestones:
Sprint 2022/09/05 - 2022/09/16,
Sprint 2022/09/19 - 2022/09/30
Sep 19, 2022
github-actions
bot
modified the milestones:
Sprint 2022/09/19 - 2022/09/30,
Sprint 2022/10/03 - 2022/10/14
Oct 3, 2022
benelan
modified the milestones:
Sprint 2022/10/03 - 2022/10/07,
Sprint 2022/10/10 - 2022/10/21
Oct 11, 2022
github-actions
bot
modified the milestones:
Sprint 2022/10/10 - 2022/10/21,
Sprint 2022/10/24 - 2022/11/04
Oct 24, 2022
github-actions
bot
modified the milestones:
Sprint 2022/10/24 - 2022/11/04,
Sprint 2022/11/07 - 2022/11/18
Nov 7, 2022
As a workaround for now, an array of strings for value seems to work. // inputDatePickerRangeElement.valueAsDate = [new Date(), new Date()];
inputDatePickerRangeElement.value = ["2022-11-09", "2022-11-20"]; |
@eriklharper can we prioritize this one for the next release? |
I have a fix ready to go, just writing some tests for it :) PR should be ready EOW. |
github-actions
bot
modified the milestones:
Sprint 2022/11/07 - 2022/11/18,
Sprint 2022/11/20 - 2022/12/01
Nov 21, 2022
eriklharper
added
2 - in development
Issues that are actively being worked on.
and removed
1 - assigned
Issues that are assigned to a sprint and a team member.
labels
Nov 23, 2022
eriklharper
added a commit
that referenced
this issue
Nov 23, 2022
…inputs (#5758) **Related Issue:** #5207 ## Summary This PR fixes an issue where the input boxes are completely empty when the `valueAsDate` property is directly changed with javascript when using the `range` prop. <!-- Please make sure the PR title and/or commit message adheres to the https://www.conventionalcommits.org/en/v1.0.0/ specification. Note: If your PR only has one commit and it is NOT semantic, you will need to either a. add another commit and wait for the check to update b. proceed to squash merge, but make sure the commit message is the same as the title. This is because of the way GitHub handles single-commit squash merges (see zeke/semantic-pull-requests#17) If this is component-related, please verify that: - [ ] feature or fix has a corresponding test - [ ] changes have been tested with demo page in Edge --- If this is skipping an unstable test: - include info about the test failure - submit an unstable-test issue by [choosing](https://github.com/Esri/calcite-components/issues/new/choose) the unstable test template and filling it out --> Co-authored-by: Erik Harper <eriklharper@pm.me>
eriklharper
added
3 - installed
Issues that have been merged to master branch and are ready for final confirmation.
and removed
2 - in development
Issues that are actively being worked on.
labels
Nov 23, 2022
Installed and assigned for verification. |
geospatialem
modified the milestones:
Sprint 2022/11/20 - 2022/12/01,
2023 January Priorities
Nov 23, 2022
geospatialem
added
4 - verified
Issues that have been released and confirmed resolved.
and removed
3 - installed
Issues that have been merged to master branch and are ready for final confirmation.
labels
Nov 28, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
4 - verified
Issues that have been released and confirmed resolved.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
Actual Behavior
InputDatePicker with the range parameter ignores the valueAsDate parameter value and the input element stays empty.
The single inputDatePicker honours the valueAsDate parameter with a pre filled date value in the input element
Expected Behavior
The inputDatePicker element with the range parameters should contain the pre filled values when passing the [new Date(), new Date()] array in the valueAsDate parameter
Reproduction Sample
https://codepen.io/arjan_esrinl/pen/JjLVKwV?editors=1001
Reproduction Steps
Reproduction Version
1.0.0-beta.91
Relevant Info
Windows 11
Chrome 104.0.5112.81 (Official Build) (64-bit)
Firefox 95.0 (64-bit)
Regression?
No response
The text was updated successfully, but these errors were encountered: