Skip to content

Commit

Permalink
Merge pull request #21 from hajjem-ayoub/master
Browse files Browse the repository at this point in the history
#16 Initial state of disabled is ignored
  • Loading branch information
yankeeinlondon authored Oct 6, 2016
2 parents 541e8d5 + eadab8b commit 2c4ef86
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion addon/components/ui-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ export default Ember.Component.extend({
tooltipSplit: false, // if false only one tooltip for ranges, if true then tooltips for both
handle: 'round', // values are round, square, triangle, or custom
reversed: false,
enabled: true,
enabled: Ember.computed("disabled", {
get() {
return !this.get("disabled");
},
set(key, value) {
return value;
}
}),
naturalArrowKeys: false,
scale: 'linear',
focus: false,
Expand Down

0 comments on commit 2c4ef86

Please sign in to comment.