Comments (2)
I'm experiencing this as well.
Commenting/removing line 29 from nouislider.js seems to resolve the issue:
Works as a fix, yes. But I guess it is not optimal if you're using the property - or as I am, working on a project with multiple people where vendor files are not added to the codebase.
from angular-nouislider.
I figured out what's going on here. When the margin setting is absent or zero a false value is passed to testMargin()
in jquery.nouislider.js line 489:
function testMargin ( parsed, entry ) {
if ( !isNumeric(entry) ){
throw new Error("noUiSlider: 'margin' option must be numeric.");
}
parsed.margin = parsed.spectrum.getMargin(entry);
if ( !parsed.margin ) {
throw new Error("noUiSlider: 'margin' option is only supported on linear sliders.");
}
}
If you pass a margin value via the attribute then the error doesn't happen. So my earlier hack is unnecessary if you do want a margin. If you don't, you can comment out that line until there's a patch.
from angular-nouislider.
Related Issues (20)
- call parseFloat()... HOT 1
- nouislider dependency is missing from bower. HOT 2
- Non-linear slider?
- callback="set" interfears with $rootScope $digest
- Allow callback for all 3 nouislider events HOT 2
- Using with requirejs? HOT 1
- Error: noUiSlider: 'range' value isn't numeric. HOT 4
- Does this support the connect attribute? HOT 1
- Somebody, Show me pls working version this slider with custom range (non-linear) ... HOT 1
- How do I use the Angular-nouislider? HOT 1
- Any plans to update nouislider to the latest version? HOT 2
- Debounce on slider on slide? HOT 1
- [Range slider] Handlers don't position correctly. HOT 1
- Remove jQuery dependency?
- Not available on npm yet HOT 3
- TypeError: slider.noUiSlider is not a function
- link.js
- Global 'use strict' is not concat safe
- Creating pips on the slider bar at each step
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-nouislider.