Skip to content

Commit

Permalink
4.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
szhsin committed Aug 13, 2023
1 parent f913d2d commit f547dca
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion dist/es/components/MenuContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const MenuContainer = ({
}
};
const onBlur = e => {
if (isOpen && !e.currentTarget.contains(e.relatedTarget || document.activeElement)) {
if (isOpen && !e.currentTarget.contains(e.relatedTarget)) {
safeCall(onClose, {
reason: CloseReason.BLUR
});
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ const MenuContainer = ({
}
};
const onBlur = e => {
if (isOpen && !e.currentTarget.contains(e.relatedTarget || document.activeElement)) {
if (isOpen && !e.currentTarget.contains(e.relatedTarget)) {
safeCall(onClose, {
reason: CloseReason.BLUR
});
Expand Down
18 changes: 9 additions & 9 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions example/src/utils/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useEffect, useLayoutEffect } from 'react';
import { useTheme } from '../store';

export const version = '4.0.2';
export const build = '132';
export const version = '4.0.3';
export const build = '133';

export const bem = (block, element, modifiers = {}) => {
let blockElement = element ? `${block}__${element}` : block;
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@szhsin/react-menu",
"version": "4.0.2",
"version": "4.0.3",
"description": "React component for building accessible menu, dropdown, submenu, context menu and more.",
"author": "Zheng Song",
"license": "MIT",
Expand Down

0 comments on commit f547dca

Please sign in to comment.