We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 791f620 commit 13513b7Copy full SHA for 13513b7
projects/igniteui-angular/src/lib/directives/button/button-base.ts
@@ -11,6 +11,7 @@ import {
11
AfterViewInit,
12
} from '@angular/core';
13
import { PlatformUtil } from '../../core/utils';
14
+import { animationFrameScheduler } from 'rxjs';
15
16
export const IgxBaseButtonType = {
17
Flat: 'flat',
@@ -110,7 +111,7 @@ export abstract class IgxButtonBaseDirective implements AfterViewInit{
110
111
if (this._platformUtil.isBrowser && !this._viewInit) {
112
this._viewInit = true;
113
- requestAnimationFrame(() => {
114
+ animationFrameScheduler.schedule(() => {
115
this.element.nativeElement.style.removeProperty('--_init-transition');
116
});
117
}
0 commit comments