-
-
Notifications
You must be signed in to change notification settings - Fork 834
bug: stencil tries to hydrate value properties on input bindings causing bugs preventing JSON entry #6368
Copy link
Copy link
Closed
Labels
Bug: ValidatedThis PR or Issue is verified to be a bug within StencilThis PR or Issue is verified to be a bug within StencilHelp Wanted
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Stencil Version
4.29.0
Current Behavior
I suspect this issue was introduced in PR #6208
The issue is whenever you use Stencil with an input or textarea, Stencil tries to hydrate the value on change. So if the user inputs {}, it becomes a literal object, which we try to Stringify in Ionic Framework and it becomes [object Object].
Expected Behavior
Stencil should not turn input values into objects when the values change to contain JSON.
System Info
Steps to Reproduce
You can reproduce this issue on the ion-input docs, here:
https://ionicframework.com/docs/api/input
Reproduce by going to the Default Input field and typing {} and note that it becomes [object Object].
Code Reproduction URL
https://ionicframework.com/docs/api/input
Additional Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bug: ValidatedThis PR or Issue is verified to be a bug within StencilThis PR or Issue is verified to be a bug within StencilHelp Wanted