Skip to content

Commit b7a187c

Browse files
committed
fix: respect the open prop changes
1 parent f6243dc commit b7a187c

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
# Changelog
44

5+
## 1.5.5
6+
7+
2025-12-3
8+
9+
### Bug Fixes
10+
11+
- **ModalAction**
12+
13+
🐞 Respect `open` prop when it's changed to `false`.
14+
515
## 1.5.4
616

717
2025-12-2

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tiny-codes/react-easy",
3-
"version": "1.5.4",
3+
"version": "1.5.5",
44
"description": "Simplify React and AntDesign development with practical components and hooks",
55
"keywords": [
66
"react",

src/components/ModalAction/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export const genModalActionRenderer = (defaultProps: Partial<ModalActionProps<an
214214

215215
// Listen to the open props changes
216216
useEffect(() => {
217-
if (openInProps) {
217+
if (openInProps !== undefined) {
218218
setOpen(openInProps);
219219
}
220220
}, [openInProps]);

0 commit comments

Comments
 (0)