Skip to content

Conversation

@david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented May 24, 2024

Discovered because of a delightful bug in #2252 (comment). This actually fixes an existing bug on the instance create form where if you press enter to submit the form while in the name field, for example, it will remove an attached disk.

Closes #2260 too.

Bug demo

When the disk disappears, that's because I've pressed enter with a random text input focused.

2024-05-24-button-type-bug.mp4

@vercel
Copy link

vercel bot commented May 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview May 24, 2024 10:24pm

@charliepark
Copy link
Contributor

a fun find

@david-crespo david-crespo enabled auto-merge (squash) May 24, 2024 22:27
@david-crespo david-crespo merged commit 9b7ea53 into main May 24, 2024
@david-crespo david-crespo deleted the lint-button-has-type branch May 24, 2024 22:33
@benjaminleonard
Copy link
Contributor

Such a useful rule. Wish there was an easy way to share the lint rules we use here to the others without doing it manually.

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.

create RemoveButton component

4 participants