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

Autocomplete component is not detecting the onChange functionality when freeSolo is activated #895

Open
tcvetkoska opened this issue Oct 25, 2022 · 0 comments

Comments

@tcvetkoska
Copy link

The autocomplete component is not detecting any change when freeSolo option is activated. The issue is because the onChange, onBlur and onFocus methods are not dispatched to the Textfield component. Also, the validation is one of the features that was not working correctly.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/s/autocomplete-example-4fy99n
  2. Try to type something in the textfield
  3. check the console.log values object
  4. the typed value is not dispatched

Steps for the validation bug:

  1. Try to type something (have less then 4 characters on example or just change the focus out of the field)
  2. The error message will not be shown
  3. Add some selection, after that delete the value, leave the field - the error message will be shown

Expected behavior
When typed something - the value should be added in the values object state also the error should be detected and show the proper error message

Additional context
Because we needed the solution for the concrete bugs we created the PR that is fixing the issue, here is a link to the PR #894

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

1 participant