Skip to content

Enter key refreshes page when creating new role #7327

@mharveyDC

Description

@mharveyDC

Describe the bug
When attempting to create a new role, after typing the name of the role, and pushing the enter key, the page refreshes and the role isn't created. Clicking on the "Create" button still creates the role.

To Reproduce

  1. Expand "Directory" in the admin interface, and click on "Roles"
  2. Click on "Create"
  3. Enter a name for the role
  4. Press enter
  5. The page will refresh and the role won't be created

Expected behavior
I'd expect the role to be created, and the page to not refresh

Screenshots
N/A

Logs

Version and Deployment (please complete the following information):

  • authentik version: 2023.10.1
  • Deployment: docker-compose

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions