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 eps1lon committed Mar 4, 2020
1 parent 64d73e2 commit c842191
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 c842191

Please sign in to comment.