Skip to content

[v21.0.0-beta.1] Textarea & Signal Forms Incompatability #19116

@rd-wm

Description

@rd-wm

Describe the bug

Textarea is incompatable with Angular 21's Signal Forms due to the this.ngControl.valueChanges subscription in Textarea's onInit:

ERROR TypeError: can't access property "subscribe", this.ngControl.valueChanges is undefined
    onInit primeng-textarea.mjs:175
    ngOnInit primeng-basecomponent.mjs:205

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/github-5aqhxhtg?file=src%2Fapp%2Fapp.component.ts

Environment

N/A

Angular version

21.0.0

PrimeNG version

v20

Node version

22.17.0

Browser(s)

No response

Steps to reproduce the behavior

  1. Use Angular 21's new Signal Forms
  2. Use PrimeNG's textarea
  3. Observe the console error in browser

Expected behavior

Should be compatible

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions