taiga-ui icon indicating copy to clipboard operation
taiga-ui copied to clipboard

🐞 - Taiga-UI + runOutsideAngular

Open splincode opened this issue 2 years ago • 1 comments

Which @taiga-ui/* package(s) are the source of the bug?

core

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/taiga-starter-zp2kuq?file=src%2Fapp%2Fapp.component.ts

Description

@Component({
  selector: 'my-app',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css'],
})
export class AppComponent {
  testValue = 1;

  constructor(private zone: NgZone, private cd: ChangeDetectorRef) {}

  ngOnInit() {
    this.zone.runOutsideAngular(() => {
      setInterval(() => {
        this.testValue = parseFloat(this.testValue as any) + 1;
        this.cd.detectChanges();
      }, 3000);
    });
  }
}

taiga-ui: https://stackblitz.com/edit/taiga-starter-zp2kuq?file=src%2Fapp%2Fapp.component.ts

image

material: https://stackblitz.com/edit/angular-mat-form-field-4orpeh?file=app%2Fform-field-prefix-suffix-example.ts

image

ng-zorroo: https://stackblitz.com/edit/ng-zorro-antd-start-r6b4qy

image

Angular version

latest

Taiga UI version

latest

Which browsers have you used?

  • [X] Chrome
  • [ ] Firefox
  • [ ] Safari
  • [ ] Edge

Which operating systems have you used?

  • [X] macOS
  • [ ] Windows
  • [ ] Linux
  • [ ] iOS
  • [ ] Android

splincode avatar Jan 28 '22 08:01 splincode

https://github.com/Tinkoff/taiga-ui/issues/1196

splincode avatar Jan 28 '22 11:01 splincode