Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 NG0600 on set tui-loader.showLoader=true when child tui-textfield is focused #10019

Closed
MillerSvt opened this issue Dec 18, 2024 · 2 comments · Fixed by #10020
Closed

🐞 NG0600 on set tui-loader.showLoader=true when child tui-textfield is focused #10019

MillerSvt opened this issue Dec 18, 2024 · 2 comments · Fixed by #10020
Assignees
Labels
community contribution This issue was closed by a PR from the community P2 This issue has medium priority S2 This issue has medium severity

Comments

@MillerSvt
Copy link
Collaborator

MillerSvt commented Dec 18, 2024

Reproduction url

https://stackblitz.com/edit/angular-rivigpgk?file=src%2Fapp%2Fapp.component.ts

Description

<tui-root> 
  <tui-loader [showLoader]="isLoading()">
    <tui-textfield>
      <label tuiLabel>Код</label>
      <input
          #input
          tuiTextfield
          [formControl]="control"
      />
    </tui-textfield>
  </tui-loader>
</tui-root>
  1. Focus tui-textfield
  2. Programmatically change isLoading to true

Error: Writing to signals is not allowed in a computed or an effect by default. Use allowSignalWrites in the CreateEffectOptions to enable this inside effects.

  1. Programmatically change isLoading to false

Input looks focused.

Taiga UI version

4.18.0

Browser Used

Chrome

OS Used

macOS

@MillerSvt MillerSvt self-assigned this Dec 18, 2024
@waterplea waterplea added P2 This issue has medium priority S2 This issue has medium severity labels Dec 18, 2024
@waterplea
Copy link
Collaborator

That's weird. We only have this for effect really, and I don't think we ever do setting of value in computed:
#9810
Could it be the case that signals lag somehow and reading the signal in computed triggers some effect?

@MillerSvt
Copy link
Collaborator Author

The component template is in effect. I am working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community contribution This issue was closed by a PR from the community P2 This issue has medium priority S2 This issue has medium severity
2 participants