reactjs / react-autocomplete

WAI-ARIA compliant React autocomplete (combobox) component
MIT License
2.17k stars 532 forks source link

Input search for non existing value displays not required blank drop-down menu in IE11 #264

Closed rapaSharma closed 7 years ago

rapaSharma commented 7 years ago

Issue is in IE. In Chrome it works fine.

  1. Search for item starts with cumaa295(more than 5 items exists in list) displays drop-down of 3 values with scrollbar.
  2. Search for item starts with cumaa2952(not exists in list) displays blank drop-down menu Note: If drop-down list having no scroll bar works fine.

image

Same issue can be notice using one of the example given in react-autocomplete code page. i.e., https://reactcommunity.org/react-autocomplete/async-data/ image

CMTegner commented 7 years ago

This is an issue with max-height. Try removing max-height from the menu styles and see if it fixes the problem.

rapaSharma commented 7 years ago

Not worked for me. Still same issue.

rapaSharma commented 7 years ago

overflow:"scroll" will work. But, it brings unnecessary Scroll all time :(

CMTegner commented 7 years ago

Can you create a reduced test case (like a JSFiddle) where you remove max-height and still see the problem?

rapaSharma commented 7 years ago

I will provide JSFiddle with specific example. Meanwhile, you can test example given by you about Async data only.

rapaSharma commented 7 years ago

Issue was with width attribute. Below solution helped in get rid of this issue. Solution: menuStyle = this.props.menuStyle menuStyle={ itemsCount <= 0 ? {} : menuStyle }