Skip to content

Commit

Permalink
Fixed #2928 - When Toast component is closed, its zIndex does not clear
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed May 25, 2022
1 parent 605e17e commit 6f510ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/toast/Toast.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const Toast = React.memo(React.forwardRef((props, ref) => {
}

const onExited = () => {
messagesState.length === 0 && ZIndexUtils.clear(containerRef.current);
messagesState.length === 1 && ZIndexUtils.clear(containerRef.current);

props.onHide && props.onHide();
}
Expand Down

0 comments on commit 6f510ab

Please sign in to comment.