Sfoglia il codice sorgente

Fix attribute value of aria-pressed so it reflects the actual state

Put double curly braces around the variable. Fixes #639.
Marco Zehe 6 anni fa
parent
commit
ad3014896f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/components/toggle_button.ts

+ 1 - 1
src/components/toggle_button.ts

@@ -44,7 +44,7 @@ export default {
             role="button"
             tabindex="0"
             ng-click="$ctrl.action()"
-            aria-pressed="$ctrl.flag">
+            aria-pressed="{{$ctrl.flag}}">
             <md-icon><img ng-src="{{ $ctrl.getIcon() }}"></md-icon>
         </md-button>
     `,