Skip to content

bug: stencil tries to hydrate value properties on input bindings causing bugs preventing JSON entry #6368

@ShaneK

Description

@ShaneK

Prerequisites

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: ValidatedThis PR or Issue is verified to be a bug within StencilHelp Wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions