This repository was archived by the owner on Sep 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
src/components/datepicker/js Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 6464 "karma" : " ^1.0.0" ,
6565 "karma-firefox-launcher" : " ^1.0.0" ,
6666 "karma-jasmine" : " ^1.0.2" ,
67- "karma-phantomjs-launcher" : " ^1.0.0" ,
6867 "karma-sauce-launcher" : " ^1.0.0" ,
6968 "lazypipe" : " ^1.0.1" ,
7069 "lodash" : " ^4.13.1" ,
7170 "minimist" : " ^1.1.0" ,
7271 "mkdirp" : " ^0.5.0" ,
73- "phantomjs-prebuilt" : " ^2.1.7" ,
7472 "postcss" : " ^5.1.2" ,
7573 "prompt-sync" : " ^1.0.0" ,
7674 "q" : " ^1.0.1" ,
Original file line number Diff line number Diff line change 552552 this . ngModelCtrl . $setValidity ( 'valid' , date == null ) ;
553553 }
554554
555- // TODO(jelbourn): Change this to classList.toggle when we stop using PhantomJS in unit tests
556- // because it doesn't conform to the DOMTokenList spec.
557- // See https://github.com/ariya/phantomjs/issues/12782.
558- if ( ! this . ngModelCtrl . $valid ) {
559- this . inputContainer . classList . add ( INVALID_CLASS ) ;
560- }
555+ angular . element ( this . inputContainer ) . toggleClass ( INVALID_CLASS , ! this . ngModelCtrl . $valid ) ;
561556 } ;
562557
563558 /** Clears any error flags set by `updateErrorState`. */
You can’t perform that action at this time.
0 commit comments