material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Save action triggered with invalid data on Enter key pressed

Open jdavidferreira opened this issue 6 years ago • 8 comments

Describe the bug On Editable feature, if some column has the validate property and you focus on some input and press Enter, the save action is triggered (onRowAdd, onRowUpdate) even if the row has invalid data.

To Reproduce

  1. Go to https://codesandbox.io/s/cranky-morse-eo9gf
  2. Click on "Add" row icon.
  3. Click on some input.
  4. Press 'Enter' key.
  5. The row was added with empty (invalid) data.

Expected behavior Pressing enter should not trigger save action with invalid data.

jdavidferreira avatar Aug 04 '20 04:08 jdavidferreira

Having this same issue. Is there a way to work around or fix this?

jscotty723 avatar Sep 28 '20 17:09 jscotty723

Any update on it ?

toannguyenspce avatar Nov 25 '20 10:11 toannguyenspce

I have a PR proposal that fixes that bug. If it is that urgent, you may checkout my branch and build your own version with my code. @mrjdavidfg @jscotty723 @awesomeToan

@mbrn do you have time to review my PR ?

alpcoker avatar Nov 25 '20 15:11 alpcoker

Any update on this?

JuddAO19 avatar Feb 09 '21 22:02 JuddAO19

I'm having the same issue. Any update on this??

Ashwarrior avatar Feb 28 '21 12:02 Ashwarrior

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.

stale[bot] avatar May 30 '21 13:05 stale[bot]

I am having the same issue. Some update on this?

GustafFig avatar Apr 11 '22 17:04 GustafFig

Any update on this issue pls help

Vishal0612 avatar Jun 18 '22 06:06 Vishal0612