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

[Bug Report] Operate with the same el-slider range values, it becomes NaN #12252

Closed
sdr0x07b6 opened this issue Aug 6, 2018 · 1 comment
Closed

Comments

@sdr0x07b6
Copy link

Element UI version

2.4.5

OS/Browsers version

macOS 10.13.6, Google Chrome 68.0.3440.84

Vue version

2.5.17

Reproduction Link

https://jsfiddle.net/waq1dg4L/

Steps to reproduce

The values of min and max are the same.
Move the slider to become NaN.

For example, at the EC site, there is a slider UI that narrows down items by price.
The sliders min and max are the lowest and highest value of the item price.
When all items are the same price, min and max are the same.
In this case, I can think of disabling the slider, but it should be fundamentally improved.

What is Expected?

Min and max must be set for both ends of the slider.

What is actually happening?

The value becomes NaN.
Whatever the specification is, NaN should be avoided.

@jikkai
Copy link
Contributor

jikkai commented Aug 7, 2018

Yep, NaN must be avoided, so I'll fix for that. But min and max point can't be set for both ends of the slider, this is by design. 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants