Skip to content

fix(skills): default SkillTagManager buttons to type="button"#68

Merged
mpge merged 1 commit into
mainfrom
fix/skill-tag-manager-button-type
May 13, 2026
Merged

fix(skills): default SkillTagManager buttons to type="button"#68
mpge merged 1 commit into
mainfrom
fix/skill-tag-manager-button-type

Conversation

@mpge
Copy link
Copy Markdown
Member

@mpge mpge commented May 13, 2026

Summary

  • SkillTagManager.vue's three <button> elements (remove chip, add-toggle, dropdown option) had no type attribute. Inside Admin/Skills/Form.vue's <form> they default to type="submit", so any tag/department interaction would submit the skill form prematurely.
  • Adds type="button" to all three so they stay click-only.

Test plan

  • Open Admin → Skills → New, click "Add Tag" — dropdown opens, form stays put
  • Add a tag, then remove it via the chip × — chip clears, form stays put
  • Submit the form intentionally — submit still posts

The remove-chip, add-toggle, and option-list buttons sit inside Admin/Skills/Form.vue's <form>. Without an explicit type they default to type="submit", so clicking any of them would submit the skill form before the user finished editing routing tags or departments.
@mpge mpge merged commit 00ed302 into main May 13, 2026
7 checks passed
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.

1 participant