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 Ayder Abdurafieiev committed Mar 26, 2019
1 parent 0835dea commit 69cce7a
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 @@ -366,6 +366,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 @@ -388,6 +390,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 69cce7a

Please sign in to comment.