Skip to content

bug: ion-input has an issue parsing literal curly and square bracket characters #30529

Open
@shreeshbhat

Description

@shreeshbhat

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

Starting from v8.6.0, ion-input is not parsing {} and [] correctly.
Typing {} gives [object Object] and [] returns no string as the output.

Expected Behavior

Expectation is that ion-input will allow to enter arrays such as [], and [abc].
It should also allow JSONs such as {}, and {test: true}.

Steps to Reproduce

This behavior is supported in v8.5.9 and started breaking in v8.6.0

Code Reproduction URL

https://ionicframework.com/docs/api/input

Ionic Info

Ionic:

   Ionic CLI                     : 5.4.16 (/Users/shbhat/.npm/_npx/864a9e3c2cd0cf50/node_modules/ionic)
   Ionic Framework               : not installed
   @angular-devkit/build-angular : 18.2.14
   @angular-devkit/schematics    : 18.2.14
   @angular/cli                  : 18.2.14
   @ionic/angular-toolkit        : 12.1.1

Utility:

   cordova-res : not installed
   native-run  : 2.0.1

System:

   NodeJS : v20.18.3 (/Users/shbhat/.asdf/installs/nodejs/20.18.3/bin/node)
   npm    : 10.8.2
   OS     : macOS Unknown

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions