Describe the bug
When <EuiDualRange> receives empty strings as any of the values (e.g. ['', '']), it may incorrectly jump to outer values when user is changing its value and report invalid state.
Environment and versions
- EUI version: 82.1.0
- Browser: Chrome / any
- Operating System: MacOS / any
To Reproduce
Steps to reproduce the behavior:
- Go to https://codesandbox.io/s/vibrant-tree-wc5i7g?file=/demo.js
- Move the lower value slider to the right until it reaches
76
- See that the slider moved to
min - 76 instead of the expected 76 - max
Expected behavior
- Using empty strings as any of the values should result in setting these values to min or max.
- Slider should not jump to unexpected values
Minimum reproducible sandbox
https://codesandbox.io/s/vibrant-tree-wc5i7g?file=/demo.js
Describe the bug
When
<EuiDualRange>receives empty strings as any of the values (e.g.['', '']), it may incorrectly jump to outer values when user is changing its value and report invalid state.Environment and versions
To Reproduce
Steps to reproduce the behavior:
76min - 76instead of the expected76 - maxExpected behavior
Minimum reproducible sandbox
https://codesandbox.io/s/vibrant-tree-wc5i7g?file=/demo.js