This critical bug appears in the content manager when filling out repeatable components.
If you component have a short form text input field and you press enter in that field when filling out the form, then the first element in your list of components is deleted, no matter what component you are currently editing.
- Clone the repository
- From root run `docker compose up -d
- From ./component-delete run
yarn install - From ./component-delete run
yarn develop - Open the browser and navigate to (localhost)[http://localhost:1337/admin/content-manager/collection-types/api::repeatable-quote.repeatable-quote/tmlmollog0zctov16ne4noxh]
Credentials (for the demo setup in this repo):
- Username: me@example.com
- Password: 112TestMe!
- Add a new repeatable component
- Focus a short text input field in a repeatable component
- Press enter
I have made a fresh github repo (see link) that, give you all that is needed to reproduce.
But you can also do it from a freshly installed strapi instance:
yarn create strapi- Follow the guide choosing, skip login, postgres, Start with an example structure & data? (YES), Start with Typescript? (YES), Install dependencies with yarn? (YES)
yarn develop- Create a admin user and a new article in the content manager.
- Add a block with a "Quote" and press save.
- Add a second block with a quote.
- Focus the title input field and press enter.