Adapter
Adapter copied to clipboard
using requestDataFromUser with source erros does not allow me to input any data
-
I'm submitting a ... [x] bug report [ ] feature request [ ] question about the decisions made in the repository [x] question about how to use this project
-
Summary
For some reason, I am using requestDataFromUser
just like @fuchien is using, when I open the modal with errors array, I can't input any data to fix the errors, just following this code snippet from your docs
const passedInData = {
source: [
{
data: {firstName: "John", email: "[email protected]", userId: 12345},
errors: [{key: "userId", message: "userId already exists in database", level: "error"}]
},
{
data: {firstName: "", email: "jane@doe", userId: 54321},
errors: [
{key: "firstName", message: "Name cannot be blank", level: "error"},
{key: "email", message: "Email invalid. Please correct email address", level: "error"}
]
}
]
}
const launchFlatfile = () => {
importer.requestDataFromUser(passedInData)
}
and it does not work when the modal opens, it shows the red fields with correct validations, but I can't update any value
- Other information (e.g. detailed explanation, stacktraces, related issues, suggestions on how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)