-
Notifications
You must be signed in to change notification settings - Fork 117
Closed as not planned
Labels
Resolution: Staleneeds reproductionBugs with the label will not be addressed until the steps to reproduce are availableBugs with the label will not be addressed until the steps to reproduce are availabletriageWe discuss this topic in our internal weeklyWe discuss this topic in our internal weekly
Description
Prerequisites
- I have read the Contributing Guidelines.
- I have not leaked any internal/restricted information like screenshots, videos, code snippets, links etc.
What happened?
Created from community: https://community.siemens.com/t/ix-textarea-strings-displayed-as-objects/2804
We recently upgraded ix-angular to v3 and with that replaced all textarea with ix-textarea components. But we faced a problem that even when passing the value as string to ix-textarea (ex: "{"test": "sample data" }" which is a json stored as string it was always shown inside the textarea as [object Object].
<ix-textarea
textarea-height="100px"
textarea-width="100%"
#credentialsTextArea
[value]="getFormattedData()"
></ix-textarea>
We overcome it by replacing all double quotes with single quotes but be need to modify the text for that.
Can you advise how can we display value like: {"test": "sample data" } inside ix-textarea ?
What type of frontend framework are you seeing the problem on?
Angular
On which version of the frontend framework are you experiencing the issue?
@angular/[email protected]
Which version of iX do you use?
v3
Code to produce this issue.
<ix-textarea
textarea-height="100px"
textarea-width="100%"
[value]="{"attribute1": "example1"}"
></ix-textarea>Metadata
Metadata
Assignees
Labels
Resolution: Staleneeds reproductionBugs with the label will not be addressed until the steps to reproduce are availableBugs with the label will not be addressed until the steps to reproduce are availabletriageWe discuss this topic in our internal weeklyWe discuss this topic in our internal weekly