Skip to content

Conversation

@ShaneK
Copy link
Contributor

@ShaneK ShaneK commented Sep 15, 2025

fixes: #6368, #6380

What is the current behavior?

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].

GitHub Issue Number: #6368, #6380

What is the new behavior?

We're removing the bit that tries to imitate hydration in the HTML for any and complex types for now. In the future, this might be implemented in a more thorough way that's less likely to have impact elsewhere.

Additionally, there's regression tests to prevent this case from happening again in the future.

Documentation

Does this introduce a breaking change?

  • Yes
  • No

Testing

Other information

@ShaneK ShaneK requested a review from a team as a code owner September 15, 2025 17:02
Copy link
Contributor

@johnjenkins johnjenkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm - thanks!

@johnjenkins johnjenkins added this pull request to the merge queue Sep 16, 2025
Merged via the queue into main with commit ccae0d7 Sep 16, 2025
69 checks passed
@johnjenkins johnjenkins deleted the fix/json-hydration branch September 16, 2025 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants