Skip to content
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(ui5-daterange-picker): show value in input only when first & last… #2098

Merged
merged 9 commits into from
Sep 24, 2020

Conversation

fifoosid
Copy link
Contributor

@fifoosid fifoosid commented Aug 17, 2020

Fixes #1988

The main idea of this change is to split the value property into two separate properties

  • value: which is used for visualising the value of the component
  • realValue: which is used to store the real value of the component

The only state that they are not in sync is when only one date is selected. Otherwise they have the same value.

packages/main/src/Input.js Outdated Show resolved Hide resolved
packages/main/src/Input.js Outdated Show resolved Hide resolved
vladitasev
vladitasev previously approved these changes Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DateRangePicker: value is changed before selecting a range
2 participants