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

modelMin/modelMax must be a number #85

Open
geoguide opened this issue Sep 23, 2015 · 1 comment
Open

modelMin/modelMax must be a number #85

geoguide opened this issue Sep 23, 2015 · 1 comment

Comments

@geoguide
Copy link

I don't understand why this is happening, all the type casting in angular is getting a little obnoxious.

Here's what I'm doing:
View:
<div data-show-values="true" step="1" range-slider min="0" max="100" model-min="drsCtrl.queryData.score_low" model-max="drsCtrl.queryData.score_high" on-handle-up="drsCtrl.getResults()"></div>
drsCtrl:
this.queryData.score_low = 0; this.queryData.score_high = 100;

And I get this:

http://grab.by/KEaQ

Whyyyyy

Thanks for any help.

Update: It's only when it is set to max or min of the slider. So it looks like the plugin is nulling them out instead of just making them the min and max values.

@danielcrisp
Copy link
Owner

Can you set up a fiddle please?

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

No branches or pull requests

2 participants