availity-reactstrap-validation icon indicating copy to clipboard operation
availity-reactstrap-validation copied to clipboard

Uncaught TypeError: Cannot read property 'getInputState' of undefined

Open blacksmoke26 opened this issue 5 years ago • 2 comments

Strange error:

return (
<AvField type="select" name="location.state" label="State" helpMessage="This is an example. Deal with it!" required>
	<option>Something</option>
	<option>Something else</option>
	<option>Florida</option>
	<option>This is just an exmaple</option>
	<option>Not Florida</option>
</AvField>
);

blacksmoke26 avatar Jan 16 '19 02:01 blacksmoke26

Not really sure what error you would have been getting other than the one @mhdimsy is mentioning.

https://codesandbox.io/s/qzn84myj49

GoPro16 avatar Mar 29 '19 13:03 GoPro16

Hi, I got same error. Found that you missed <AvForm> tag you should wrap around <AvField> with <AvForm>. <AvForm> <AvField /></AvForm> Though it's late thought It may useful for some others.

sathiyaanbu avatar Jul 13 '20 10:07 sathiyaanbu