Skip to content

fix: add type="button" to TooltipTrigger in form components#4422

Open
mixelburg wants to merge 1 commit into
Dokploy:canaryfrom
mixelburg:fix/tooltip-trigger-form-submission
Open

fix: add type="button" to TooltipTrigger in form components#4422
mixelburg wants to merge 1 commit into
Dokploy:canaryfrom
mixelburg:fix/tooltip-trigger-form-submission

Conversation

@mixelburg
Copy link
Copy Markdown
Contributor

Fixes #4400.

TooltipTrigger from Radix UI renders as a <button> by default. When used inside a <form> without an explicit type="button", clicking the tooltip icon triggers form submission (since button default type is "submit").

This fixes the bug where clicking the ? icon next to the Middlewares field in the domain creation form unexpectedly creates a new domain.

Applied type="button" to all TooltipTrigger elements that are inside form components:

  • handle-domain.tsx — the original reported case (Middlewares tooltip)
  • show-resources.tsx — resource limit tooltips in application advanced settings
  • save-gitlab-provider-compose.tsx, save-github-provider-compose.tsx, save-bitbucket-provider-compose.tsx — provider form tooltips

@mixelburg mixelburg requested a review from Siumauricio as a code owner May 18, 2026 22:10
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. bug Something isn't working labels May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clicking on Domains-Middlewares' question mark icon [?] wrongly creates new domain

1 participant