Skip to content

Commit

Permalink
[Breadcrumbs] (issue-20280) fix focus issue of breadcrumbs on IE-11
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerryy committed Apr 10, 2020
1 parent 89f6208 commit 33d9bac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/material-ui/src/Breadcrumbs/Breadcrumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ const Breadcrumbs = React.forwardRef(function Breadcrumbs(props, ref) {
const [expanded, setExpanded] = React.useState(false);

const renderItemsBeforeAndAfter = (allItems) => {
const handleClickExpand = () => {
const handleClickExpand = (event) => {
setExpanded(true);
event.currentTarget.parentNode.querySelector('a').focus();
};

// This defends against someone passing weird input, to ensure that if all
Expand Down

0 comments on commit 33d9bac

Please sign in to comment.