Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert row validation #1395

Closed
nguyenhose opened this issue Jun 11, 2017 · 4 comments
Closed

Insert row validation #1395

nguyenhose opened this issue Jun 11, 2017 · 4 comments

Comments

@nguyenhose
Copy link

nguyenhose commented Jun 11, 2017

Hi, I'm using react bootstrap table and here is my workflow on a list users table:

  1. Create an user
  2. Check user information by calling an api
  3. If response result is OK, then insert new row. If not OK, then show validate error

The problem is afterInsertRow or onAddRow will insert row immediately without waiting for asynchronous check, and in this case, a row will still insert if insert request is wrong . Any suggestion for this issue ?

@AllenFang
Copy link
Owner

hello, please check #1391 detail, I know you case and let me know your concern after you reading #1391, thanks

@AllenFang
Copy link
Owner

I'll reopen it if this issues is different with #1391, thanks

@nguyenhose
Copy link
Author

nguyenhose commented Jun 11, 2017

yeah, the point is supporting asynchronous validate row data when creating :-)

@AllenFang
Copy link
Owner

@nguyenhose, fixed on v3.4.1, you can check this to know how it work, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants