You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What you were expecting:
To be able to complete and submit a create form using the keyboard
What happened instead:
You can tab through and fill out all of the inputs but once you get to the save button pressing space or enter does not submit the form. There doesn't appear to be any way to submit the form using the keyboard.
Steps to reproduce:
Go to https://marmelab.com/react-admin-demo/#/customers/create
Enter the details for the new customer using the keyboard
Tab down to the "Save" button
Press space or enter. Space shows an animation like it is going to submit but nothing happens.
// As we handle the "click" through the mousedown event, we have to make sure we cancel
// the default click in case the issue mentionned above does not occur.
// Otherwise, this would trigger a standard HTML submit, not the final-form one.
const handleClick = event => {
event.preventDefault();
event.stopPropagation();
};
Other information:
This worked previously with RA2.
Environment
React-admin version: 3.0.4
Last version that did not exhibit the issue (if applicable): 2.9
Browser: Chrome
The text was updated successfully, but these errors were encountered:
What you were expecting:
To be able to complete and submit a create form using the keyboard
What happened instead:
You can tab through and fill out all of the inputs but once you get to the save button pressing space or enter does not submit the form. There doesn't appear to be any way to submit the form using the keyboard.
Steps to reproduce:
Go to https://marmelab.com/react-admin-demo/#/customers/create
Enter the details for the new customer using the keyboard
Tab down to the "Save" button
Press space or enter. Space shows an animation like it is going to submit but nothing happens.
Related code:
Possibly related to this section of the RA code stopping the keyboard input from submitting the form https://github.com/marmelab/react-admin/blob/master/packages/ra-ui-materialui/src/button/SaveButton.js#L85
Other information:
This worked previously with RA2.
Environment
The text was updated successfully, but these errors were encountered: