Adding wrapper to template breaks functionality
graphical-iain opened this issue · 1 comments
graphical-iain commented
Steps to reproduce
- Wrap contents of rzslider with a div
Demo: fiddle doesn't allow for additional files, so I can't demo with a custom template.
Expected behaviour
A wrapper should do nothing to functionality.
Actual behaviour
A wrapper in the template should be benign. The JS should not be reliant on the structure, but on class names or variables.
With simple div wrapper inside rz-slider:
Static design of what I am trying to achieve:
Edit: Updated wrapper screenshot to look better
ValentinH commented
Hey, Yes I understand your issue.
The function responsible for this issue is this one: https://github.com/angular-slider/angularjs-slider/blob/master/src/rzslider.js#L666
I've never liked the way it was implemented and I agree that relying on classnames would be better.
Would you like to submit a PR for this?