Skip to content

Commit

Permalink
[Autocomplete] Add scrollbar support in IE11 (mui#19969)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyUstinovich authored and EsoterikStare committed Mar 30, 2020
1 parent 3349bc6 commit a6d129a
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,15 @@ export default function useAutocomplete(props) {
};

const handleBlur = event => {
// Ignore the event when using the scrollbar with IE 11
if (
listboxRef.current !== null &&
document.activeElement === listboxRef.current.parentElement
) {
inputRef.current.focus();
return;
}

setFocused(false);
firstFocus.current = true;
ignoreFocus.current = false;
Expand Down

0 comments on commit a6d129a

Please sign in to comment.