Skip to content

bug: Crash removing/adding ion-input start/end slot #28855

@aeharding

Description

@aeharding

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

If the ion-input start/end slots are dynamically removed (for example, in response to user typing) then there is a crash

Expected Behavior

Does not crash

Steps to Reproduce

  1. Visit https://stackblitz.com/edit/yrmxeg-uodqah?file=src%2Fmain.tsx
  2. Type anything
  3. Crash

Code Reproduction URL

https://stackblitz.com/edit/yrmxeg-uodqah

Ionic Info

Using stackblitz, but also ionic 7.6.3 locally.


Ionic:

   Ionic CLI       : 7.1.1 (/Users/aeharding/.nvm/versions/node/v20.8.1/lib/node_modules/@ionic/cli)
   Ionic Framework : @ionic/react 7.6.3

Capacitor:

   Capacitor CLI      : 5.6.0
   @capacitor/android : 5.6.0
   @capacitor/core    : 5.6.0
   @capacitor/ios     : 5.6.0

Utility:

   cordova-res : not installed globally
   native-run  : not installed globally

System:

   NodeJS : v20.8.1 (/Users/aeharding/.nvm/versions/node/v20.8.1/bin/node)
   npm    : 10.1.0
   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