Protected Tag deleted by key enter without correct tag name input with Gitlab v16.2.4

Summary

Protected Tag can be deleted by keybord Enter without correct tag name input with Gitlab v16.2.4

Steps to reproduce

  1. Create tag rule v* via Settings->Repository->Protected tags
  2. Create tag like v1.2.3
  3. Find the tag via Code->Tags
  4. Click Delete protected tag button
  5. Input any char like v or a (Note: Yes, delete protected tag button not highlite at this time)
  6. keyboard Enter
  7. The protected tag (eg v1.2.3) has been deleted

What is the current bug behavior?

Tag name match validation skipped when Enter

What is the expected correct behavior?

Validate tag name when Enter

Details of package version

  • GitLab v16.2.4
  • GitLab Shell 14.23.0
  • GitLab Workhorse v16.2.4
  • Ruby 3.0.6p216
  • Rails 7.0.8
  • PostgreSQL (main) 13.11
  • PostgreSQL (ci) 13.11

Environment details

  • Operating System: CentOS 8
  • Installation Target, remove incorrect values:
    • Bare Metal Machine and Docker-Compose
  • Installation Type, remove incorrect values:
    • Upgrade from version 15.6
  • Is this a single or multiple node installation?
    • single
  • Resources
    • CPU: AMD Ryzen 9 3900X 12-Core
    • Memory total: 128GB

Configuration details

Provide the relevant sections of `/etc/gitlab/gitlab.rb`

Edited by waiting