Skip to content

Null value binding form control like ix-input or ix-textarea does not appear as getting error: "Cannot read properties of null (reading 'length') #1789

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

Open
2 tasks done
Jayesh26 opened this issue Mar 20, 2025 · 1 comment
Labels
Workflow: Issue created JIRA issue is created and will be analyzed

Comments

@Jayesh26
Copy link

Prerequisites

  • I have read the Contributing Guidelines.
  • I have not leaked any internal/restricted information like screenshots, videos, code snippets, links etc.

What happened?

Hi Team,

We are getting "Cannot read properties of null (reading 'length')" issue on form control fields like "ix-textarea" or "ix-input" having two way binding in angular with null value.

In this case the control does not appear on form/screen, attached the snippet.

Can we handle null check at ix framework side so that at least form control should be seen on the screen.

we are using below version:

"@siemens/ix": "2.7.0",

"@siemens/ix-angular": "2.7.0",

"@siemens/ix-icons": "2.2.0",

Image

Image

Image

What type of frontend framework are you seeing the problem on?

Angular

Which version of iX do you use?

2.7.0

Code to produce this issue.

<ix-textarea
          id="text-area-for-{{ fieldName }}"       
          [(ngModel)]=null?
</ix-textarea>
@Jayesh26 Jayesh26 added the triage We discuss this topic in our internal weekly label Mar 20, 2025
@danielleroux danielleroux added Contribution welcome 👨‍💻 This issue is open for contributions from the community Workflow: Issue created JIRA issue is created and will be analyzed and removed triage We discuss this topic in our internal weekly labels Mar 21, 2025
@danielleroux
Copy link
Collaborator

Your issue will be analyzed and is part of our internal workflow.
To get informed about our workflow please checkout the Contributing Guidelines

JIRA: IX-2526

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Workflow: Issue created JIRA issue is created and will be analyzed
Projects
None yet
Development

No branches or pull requests

2 participants