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 0e0cf9f commit 43ddf8bCopy full SHA for 43ddf8b
projects/igniteui-angular/directives/src/directives/button/button-base.ts
@@ -11,6 +11,7 @@ import {
11
AfterViewInit,
12
} from '@angular/core';
13
import { PlatformUtil } from 'igniteui-angular/core';
14
+import { animationFrameScheduler } from 'rxjs';
15
16
export const IgxBaseButtonType = {
17
Flat: 'flat',
@@ -109,7 +110,7 @@ export abstract class IgxButtonBaseDirective implements AfterViewInit{
109
110
if (this._platformUtil.isBrowser && !this._viewInit) {
111
this._viewInit = true;
112
- requestAnimationFrame(() => {
113
+ animationFrameScheduler.schedule(() => {
114
this.element.nativeElement.style.removeProperty('--_init-transition');
115
});
116
}
0 commit comments