Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
aeharding opened this issue Jan 19, 2024 · 2 comments
Closed
3 tasks done

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

aeharding opened this issue Jan 19, 2024 · 2 comments
Labels
ionitron: stale issue needs: investigation This issue is waiting on more investigation from the Ionic Team.

Comments

@aeharding
Copy link
Contributor

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

@averyjohnston
Copy link
Contributor

Thank you for the issue, and apologies for the delay. I can replicate this, but I need to dig into why exactly it's happening. It's possible this is related to the simulated slots feature that we use for components like ion-input and ion-textarea, since the bug doesn't replicate with non-simulated slots like the ones on ion-button.

@averyjohnston averyjohnston added the needs: investigation This issue is waiting on more investigation from the Ionic Team. label Mar 22, 2024
@ionitron-bot ionitron-bot bot removed the triage label Mar 22, 2024
Copy link

ionitron-bot bot commented Apr 30, 2025

Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Thank you for using Ionic!

@ionitron-bot ionitron-bot bot closed this as completed Apr 30, 2025
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Apr 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ionitron: stale issue needs: investigation This issue is waiting on more investigation from the Ionic Team.
Projects
None yet
Development

No branches or pull requests

2 participants