availity-reactstrap-validation
availity-reactstrap-validation copied to clipboard
Uncaught TypeError: Cannot read property 'getInputState' of undefined
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>
);
Not really sure what error you would have been getting other than the one @mhdimsy is mentioning.
https://codesandbox.io/s/qzn84myj49
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.