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.)
https://www.loom.com/share/5d16ca86f70e4d5fa91882be73ed6d88
as you can see, I can't type anything
it happens right after using importer.close(), and using requestDataFromUser again with source
@leognmotta thank you for your report! Would you be able to provide the settings and hooks you're using? Perhaps it'll be easier to create a CodeSandbox with your configs?
Trying, to create a sandbox, but not being able to reproduce