taiga-family / taiga-ui

Angular UI Kit and components library for awesome people
https://taiga-ui.dev
Apache License 2.0
3.3k stars 465 forks source link

Radio button works incorrectly when patch from value #9807

Closed splincode closed 23 hours ago

splincode commented 5 days ago

Discussed in https://github.com/orgs/taiga-family/discussions/9801

Originally posted by **vytautas-pranskunas-** November 20, 2024 I am attaching a vuideo but it is some kind of tick missing because when i path from value (after 2 seconds as you can see in source code) radio button value changes but animation is not played until the end. It is enough for me click anywhere on the screen and animation is completed. Any ideas why it could happen? https://github.com/user-attachments/assets/f3bc5a15-96ed-4c5d-be8f-348adc532463

Repro: https://stackblitz.com/edit/angular-buf4yk?file=src%2Fapp%2Fapp.template.html,src%2Fapp%2Fapp.component.ts&hideExplorer=1

waterplea commented 23 hours ago

You are using setTimeout inside OnPush component, it is expected not to work properly in that case.