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

Uncaught TypeError: with asyncTypeAhead in onChange method #127

Open
C-odes opened this issue Aug 14, 2019 · 2 comments
Open

Uncaught TypeError: with asyncTypeAhead in onChange method #127

C-odes opened this issue Aug 14, 2019 · 2 comments

Comments

@C-odes
Copy link

C-odes commented Aug 14, 2019

HEy guys, I have a onChange where I check if an array list has items added in the json schema, implement asyncTypeAhead. The reason I have this in the onChange is cuz I need to send the formData value typed in in one field into the url in the asyncTypeAhead url prop (may need to fix search prop instead but eitherway.)

I get this error and its not saying its my code...

Uncaught TypeError: Cannot use 'in' operator to search for '__errors' in onChange

I checked where this is, it seems its a validate.js file in this library :

image

How do I resolve this? appeared:
image

Edit: Failed to recreate the error... lol . Now I have another error that

@sneu012
Copy link
Contributor

sneu012 commented Oct 29, 2019

I could not figure out much from your comments. Could you provide more info and add your schema config?
You can use this as a reference to organize your schema/uiSchema.
Edit p3z45m8rpq

@john-latham
Copy link

Here is a working (broken) example in codesandbox:

https://codesandbox.io/s/funny-rgb-ltvvp

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

3 participants