Skip to content

Commit 9173e7a

Browse files
authored
fix: popup的visible假值变化问题 (#1469)
1 parent 295dad9 commit 9173e7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Popup/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Component({
5959
const enableAnimation = animation && duration > 0;
6060

6161
if (
62-
nextProps.visible !== visible &&
62+
Boolean(nextProps.visible) !== Boolean(visible) &&
6363
enableAnimation &&
6464
!nextProps.visible &&
6565
!this.data.closing

0 commit comments

Comments
 (0)