Skip to content

fix(ui): make interactive icons inside badges clickable again - #4929

Merged
Siumauricio merged 1 commit into
canaryfrom
fix/remove-buttons-not-persisting
Jul 28, 2026
Merged

fix(ui): make interactive icons inside badges clickable again#4929
Siumauricio merged 1 commit into
canaryfrom
fix/remove-buttons-not-persisting

Conversation

@narcisonunez

Copy link
Copy Markdown
Collaborator

What is this PR about?

the "x" remove button on middleware badges (domain config) and Watch Path badges (all git provider forms) does nothing when clicked: no request, no error, no confirmation, and the item stays there after reload.

Shared cause, not two separate bugs. ( #4909 and #4886 ) Badge's base class includes [&>svg]:pointer-events-none, introduced during the Tailwind v4 / shadcn migration (#4706). This blanket-disables pointer events on every SVG child of a Badge including icons that are explicitly meant to be interactive.

The remove icon's onClick handler is correct and was never the problem.

Since the cause is shared, this single change also fixes the identical bug in:

  • Watch Paths: Application git provider forms: GitHub, GitLab, Gitea,
    Bitbucket, generic Git
  • Watch Paths: Compose git provider forms: GitHub, GitLab, Gitea,
    Bitbucket, generic Git
  • Preview Deployments: trigger labels field

There is an existing PR that fixes this issue 4827

Checklist

Before submitting this PR, please make sure that:

  • You created a dedicated branch based on the canary branch.
  • You have read the suggestions in the CONTRIBUTING.md file https://github.com/Dokploy/dokploy/blob/canary/CONTRIBUTING.md#pull-request
  • You have tested this PR in your local instance. If you have not tested it yet, please do so before submitting. This helps avoid wasting maintainers' time reviewing code that has not been verified by you.

Issues related (if applicable)

closes #4909 and #4886

Screenshots (if applicable)

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Jul 28, 2026
@oscarpergler

Copy link
Copy Markdown

Can confirm, ran into the same problem and ran into this PR when searching for a solution

@Siumauricio
Siumauricio merged commit 425d478 into canary Jul 28, 2026
4 checks passed
@Siumauricio
Siumauricio deleted the fix/remove-buttons-not-persisting branch July 28, 2026 20:09
windinternet added a commit to windinternet/dokploy that referenced this pull request Jul 29, 2026
Brings in the upstream/canary HEAD (5df820a) as an ancestor of this
branch using -s ours, matching the 2026-07-15 sync policy. The merge
content is intentionally empty; this commit only records that every
cherry-picked upstream commit has been reviewed and either integrated
or explicitly rejected:

  - 32 security fixes (Dokploy#4855-Dokploy#4875): all integrated
  - 8 bug fixes (Dokploy#4626, Dokploy#4847, Dokploy#4876, Dokploy#4877, Dokploy#4911, Dokploy#4924, Dokploy#4929, Dokploy#4931): all integrated
  - 2 AI custom provider (Dokploy#4882): integrated
  - 1 icon management (Dokploy#4932): integrated with serviceNetworks stripped (Dokploy#3774 not picked)
  - SOS / Redis-removal / multi-language cleanup: rejected

After this commit, GitHub will no longer list these upstream commits
as 'ahead/behind' pending sync. Future upstream changes still need
to be re-evaluated per docs/design-docs/2026-07-29-upstream-sync-policy.md.
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:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't remove a middleware from a domain once it's attached (UI button does nothing)

3 participants