Skip to content

Commit

Permalink
Fixed Dialog Warning: React will block javascript: URLs
Browse files Browse the repository at this point in the history
Fixed Dialog Warning: A future version of React will block javascript: URLs as a security precaution.
  • Loading branch information
leng-yue authored Jan 23, 2020
1 parent 232fb94 commit cf1e43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/dialog/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Dialog extends Component {
});

return (
<a key={idx} href="javascript:;" {...others} className={className}>{label}</a>
<a key={idx} {...others} className={className}>{label}</a>
);
});
}
Expand Down

0 comments on commit cf1e43f

Please sign in to comment.