Browse Source

fix(theme-shared): fix accessibility issue with loading state of button component

pull/1607/head
TheDiaval 7 years ago
parent
commit
60c64fb93b
  1. 4
      npm/ng-packs/packages/theme-shared/src/lib/components/button/button.component.ts

4
npm/ng-packs/packages/theme-shared/src/lib/components/button/button.component.ts

@ -61,7 +61,9 @@ export class ButtonComponent implements OnInit {
}), }),
) )
.subscribe(() => { .subscribe(() => {
this.loading = !this.loading; setTimeout(() => {
this.loading = !this.loading;
}, 0);
}); });
} }
} }

Loading…
Cancel
Save