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

fix(autocomplete): Fix unused defaultValue prop #245

Conversation

ImLuze
Copy link

@ImLuze ImLuze commented Aug 3, 2021

The defaultValue prop was not being used, which resulted in it not
working.

Closes #244

PR Checklist

This PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • A changelog entry has been added to CHANGELOG.md if necessary

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • react application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

defaultValue prop on the Autocomplete component does nothing.

Issue Number: #244

What is the new behavior?

defaultValue prop on the Autocomplete component iis taken into account.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Resolved issues

Fixes: #244

Copy link
Contributor

@jsebrech jsebrech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be necessary. defaultValue is picked up in the search modes (AutoComplete/src/modes folder) and is set on the input from there.

@jsebrech jsebrech self-requested a review September 3, 2021 13:56
@jsebrech
Copy link
Contributor

This isn't the right way to fix the underlying problem. See the discussion on #244. Closing this PR.

@jsebrech jsebrech closed this Nov 29, 2021
@ImLuze ImLuze deleted the fix/244-autocomplete-defaultvalue branch December 3, 2021 06:29
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

Successfully merging this pull request may close these issues.

defaultValue prop does not work on Autocomplete
2 participants