Skip to content

Commit 6c7dd22

Browse files
committed
fix eslint warnings
1 parent f067d7d commit 6c7dd22

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Diff for: .eslintrc.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
extends: [
3+
'react-app',
4+
'prettier/@typescript-eslint',
5+
'plugin:prettier/recommended',
6+
],
7+
settings: {
8+
react: {
9+
version: 'detect',
10+
},
11+
},
12+
};

Diff for: src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const Popup = forwardRef<PopupActions, PopupProps>(
8787
// for uncontrolled popup we need to sync isOpen with open prop
8888
useEffect(() => {
8989
if (typeof open === 'boolean') setIsOpen(open && !disabled);
90-
}, [open]);
90+
}, [open, disabled]);
9191

9292
const openPopup = () => {
9393
if (isOpen || disabled) return;

0 commit comments

Comments
 (0)