Repository navigation
Description
To Reproduce
- Go to Dashboard → Projects and click Create Project.
- Fill in a project Name (e.g.
test-project). - Open the Tags dropdown and click Create Tag.
- Enter a tag name and pick a color, then click Create.
- The tag is created — and the project is immediately created too, with no tag attached, redirecting you to the project page.
- Open the project's Update dialog, tick the tag, save. Only now is the tag assigned.
Current vs. Expected behavior
Current: Clicking Create in the tag dialog also submits the project form. The project is created straight away with no tags, and the dialog closes before a tag can be selected — so there is also no way to pick more than one tag. The tag has to be assigned manually afterwards by editing the project.
Expected: Creating a tag from the project dialog should only create the tag, leave the project dialog open with the new tag selected, and allow selecting several tags before clicking Create.
Cause: the tag dialog's form is nested inside the project dialog's form in the React tree:
<form id="hook-form-add-project"> handle-project.tsx
└ TagSelector → Popover → PopoverContent tag-selector.tsx
└ HandleTag → Dialog → DialogContent handle-tag.tsx
└ <form id="hook-form-tag">
Both are rendered through portals, but React propagates events along the React tree rather than the DOM tree, so the inner form's submit reaches the outer form's onSubmit and creates the project.
Two changes are needed:
handle-tag.tsx— calle.stopPropagation()in the tag form'sonSubmitso it cannot submit an enclosing form.handle-tag.tsx/tag-selector.tsx— the newly created tag is never added toselectedTagIdsinhandle-project.tsx, so even without the propagation bugtag.bulkAssignwould run with an empty array.tag.createalready returns the created row, so the selector can select it via a callback.
Provide environment information
Operating System:
OS: Ubuntu 24.04
Arch: x86_64
Dokploy version: 0.30.0
VPS Provider: Hetzner
What applications/services are you trying to deploy?
N/A - this happens at project creation, before any service is added.Which area(s) are affected? (Select all that apply)
Application
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
Self-hosted instance. The tag itself is created correctly and shows up under Settings → Tags. The same TagSelector is used in the project Update dialog, which has the same problem.
Will you send a PR to fix it?
Yes
Activity
linear-code commentedon Aug 18, 2026
DOK-659
andwati commentedon Aug 18, 2026
Updated the description: the main cause is the nested tag form submitting the project form through React's portal event propagation, not just the missing tag selection. Fix incoming.
fix: assign tags created from the project dialog
chore(release): 0.42.0 [skip ci]