Skip to content

Commit

Permalink
increase selector specificity
Browse files Browse the repository at this point in the history
Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
  • Loading branch information
m4theushw and oliviertassinari authored May 11, 2021
1 parent d60e7ec commit 548b38d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export default function useAutocomplete(props) {
return;
}

const prev = listboxRef.current.querySelector('.Mui-focused');
const prev = listboxRef.current.querySelector('[role="option"].Mui-focused');
if (prev) {
prev.classList.remove('Mui-focused');
prev.classList.remove('Mui-focusVisible');
Expand Down

0 comments on commit 548b38d

Please sign in to comment.