Skip to content

Commit

Permalink
update(slider): improve disabled attribute validation
Browse files Browse the repository at this point in the history
Improved the `disabled` attribute validation by only observing the attribute instead of using a getter function - as same as done in the `autocomplete`

  Closes angular#7310
  • Loading branch information
devversion authored and aider committed Apr 27, 2018
1 parent 30c7874 commit 1ac86b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/slider/slider.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ describe('md-slider', function() {

pageScope.$digest();

pageScope.$digest();

// Doesn't add active class on pressdown when disabled
wrapper.triggerHandler({
type: '$md.pressdown',
Expand All @@ -232,6 +234,8 @@ describe('md-slider', function() {

pageScope.$digest();

pageScope.$digest();

// Check for disabled state by triggering the pressdown handler and asserting that
// the slider is not active.
wrapper.triggerHandler({
Expand Down

0 comments on commit 1ac86b6

Please sign in to comment.