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

openOnFocus do not work with AutoComplete #4288

Closed
maciejmyslinski opened this issue May 17, 2016 · 4 comments
Closed

openOnFocus do not work with AutoComplete #4288

maciejmyslinski opened this issue May 17, 2016 · 4 comments
Labels
component: autocomplete This is the name of the generic UI component, not the React module! v0.x

Comments

@maciejmyslinski
Copy link

Problem description

I have issue with AutoComplete openOnFocus property.
It seems to not work when filter={AutoComplete.noFilter} is not applied.

Steps to reproduce

<AutoComplete
  dataSource={['foo', 'bar']}
  fullWidth={true}
  floatingLabelText='Lorem ipsum'
  openOnFocus={true} />

Versions

  • Material-UI: 0.15.0
  • React: 15.0.2
  • Browser: Chrome 50.0.2661.102
@liesislukas
Copy link
Contributor

liesislukas commented May 31, 2016

for me it doesn't work with fuzzyFilter. It works only when started typing. It shows no selections for empty search phrase.

works with caseInsensitiveFilter and noFilter - selections on focus even with empty search phrase, just like it should with openOnFocus={true}

Versions

  • Material-UI: 0.15.0
  • React: 15.1.0
  • Browser: Chrome 51.0.2704.63 (64-bit)

@maciejmyslinski
Copy link
Author

@liesislukas yes exactly, the point is it does not show list with empty search phrase.

@mikehuebner
Copy link

Noticing the same behavior...

<AutoComplete
                        floatingLabelText="CONTENT TITLE"
                        fullWidth={true}
                        filter={AutoComplete.fuzzyFilter}
                        openOnFocus={true}
                        dataSource={dashboard.contentList} />

Works fine with any other filtering through.

@mpontikes mpontikes mentioned this issue Aug 5, 2016
13 tasks
@aahan96
Copy link
Contributor

aahan96 commented Aug 16, 2016

I used @mikehuebner 's code and it works fine with fuzzyFilter

I am closing this issue for now. But if it still exists, please send a video/gif, along with the code and we will reopen it

@aahan96 aahan96 closed this as completed Aug 16, 2016
@oliviertassinari oliviertassinari added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 21, 2022
@zannager zannager added v0.x component: autocomplete This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: autocomplete This is the name of the generic UI component, not the React module! v0.x
Projects
None yet
Development

No branches or pull requests

6 participants