No Code Attached Yet a11y bug
avatar YatharthVyas
YatharthVyas
29 May 2021

Steps to reproduce the issue

Backend -> Users -> Groups -> New
Submit the form by Pressing 'Enter' via Keyboard while an Input Field is focused
Now, you will get redirected to the Users Page and the form data will not be saved.

This Issue exists in:

  • User Groups
  • Access Levels

Expected result

Either Nothing should happen when you press Enter like in all other forms (Contact Form etc) or The form gets successfully saved and the new item is added to the table.

Actual result

Submit using Enter key on Keyboard redirects to Users Page without saving the new item.

saveKeyboard1

System information (as much as possible)

Google Chrome on Windows 10
PHP 7.4.6
MySQLi 10.4.11-MariaDB

avatar YatharthVyas YatharthVyas - open - 29 May 2021
avatar joomla-cms-bot joomla-cms-bot - change - 29 May 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 29 May 2021
avatar chmst
chmst - comment - 29 May 2021

Confirmed. Same on view level.

avatar brianteeman
brianteeman - comment - 29 May 2021

This will be true in a lot of places as the form doesnt have a submit

avatar chmst
chmst - comment - 29 May 2021

The redirect comes from the action links, they need the name of the view. "index.php?option=com_users&view=group&layout=edit ....

I could not find this in other places than here in users (level edit, group edit, massmail edit).

avatar chmst chmst - change - 20 Feb 2023
Labels Added: No Code Attached Yet bug
Removed: ?
avatar chmst chmst - labeled - 20 Feb 2023
avatar brianteeman
brianteeman - comment - 29 Aug 2025

@chmst I tried to fix this here

<form action="<?php echo Route::_('index.php?option=com_users&layout=edit&id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="group-form" aria-label="<?php echo Text::_('COM_USERS_GROUP_FORM_' . ((int) $this->item->id === 0 ? 'NEW' : 'EDIT'), true); ?>" class="main-card form-validate">

If I add group then enter key doesnt redirect - it just reloads the form
If I add groups then enter key redirects to groups (which is correct) but it doesnt save the form

So I am obviously missing something

please add the accessibility tag

avatar alikon alikon - change - 29 Aug 2025
Labels Added: a11y
avatar alikon alikon - labeled - 29 Aug 2025

Add a Comment

Login with GitHub to post a comment