Skip to content

[6.x] Provide InputRange component valid value when Range slider is not set. (#20002)#20735

Merged
nreese merged 1 commit intoelastic:6.xfrom
nreese:backport/6.x/pr-20002
Jul 12, 2018
Merged

[6.x] Provide InputRange component valid value when Range slider is not set. (#20002)#20735
nreese merged 1 commit intoelastic:6.xfrom
nreese:backport/6.x/pr-20002

Conversation

@nreese
Copy link
Copy Markdown
Contributor

@nreese nreese commented Jul 12, 2018

Backports the following commits to 6.x:

elastic#20002)

* move unsetLogic into react component

* remove extra comment

* add comment about why empty state is needed for InputRange component

* fix broken jest test

* move empty state logic from react component to ListControl class, add comments about reset and clear functions

* add comments about clear and reset to control class

* calculate hasChanged to avoid bug where clear form still shows 'cancel changes' as active for an empty form

* use hasValue in range control to check if value exists

* add unit test for list_control_factory and cleanup range_control from review comments
@nreese nreese added the backport This PR is a backport of another PR label Jul 12, 2018
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@nreese nreese merged commit e5a6f2b into elastic:6.x Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants