weui / react-weui

weui for react
https://weui.github.io/react-weui/docs/
2.85k stars 493 forks source link

`Dialog` 引入报了一个`warn` #315

Closed d1y closed 4 years ago

d1y commented 4 years ago

老哥, 这是啥意思,

Warning: A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed "javascript:;".
    in a (created by Dialog)
    in div (created by Dialog)
    in div (created by Dialog)
    in div (created by Dialog)
    in Dialog (at httpServer.jsx:47)
    in HttpServer (at App.js:11)
    in PureComponent (at src
leng-yue commented 4 years ago

React在未来的某个版本将禁止javascript:这种类型的 这是weui button用a标签的一个问题, 暂时不影响使用

ettingshausen commented 4 years ago

没错, #320 weui项目还在维护,这个项目一直不见动静 🤦

z2014 commented 4 years ago

fixed