Skip to content

Commit 253822e

Browse files
authored
fix(dialog) resolve lint issue src/components/dialog/dialog.js
1 parent a4e60de commit 253822e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/dialog/dialog.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ class Dialog extends Component {
6161
href="#"
6262
onClick={(e) => {
6363
e.preventDefault();
64-
onClick && typeof onClick === 'function' && onClick(e);
64+
if (onClick && typeof onClick === 'function') {
65+
onClick(e);
66+
}
6567
return false;
6668
}}
6769
{...others}

0 commit comments

Comments
 (0)