react-json-schema-form-extras icon indicating copy to clipboard operation
react-json-schema-form-extras copied to clipboard

Uncaught TypeError: with asyncTypeAhead in onChange method

Open C-odes opened this issue 5 years ago • 2 comments

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

C-odes avatar Aug 14 '19 09:08 C-odes

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

sneu012 avatar Oct 29 '19 15:10 sneu012

Here is a working (broken) example in codesandbox:

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

john-latham avatar Nov 06 '19 11:11 john-latham