react-weui icon indicating copy to clipboard operation
react-weui copied to clipboard

BUG:icon组件Array.prototype.find兼容问题

Open MichaelIT opened this issue 8 years ago • 4 comments

BUG: 在安卓机型测试了华为,moto X,三星,Android 6系统,Android7系统的微信浏览器都报错:

错误如下: image

已经确定是因为微信内置浏览器不兼容ES6的Array.prototype.find所导致的

MichaelIT avatar Dec 27 '16 06:12 MichaelIT

icon.js文件的40行有一个find的使用

if(Object.keys(deprecateValue).find(v=> v==value)){
            deprecationWarning(`Icon ${value}`, `Icon ${deprecateValue[value]}`)
            value == deprecateValue[value];
        }

MichaelIT avatar Dec 27 '16 06:12 MichaelIT

谢谢 应该是之前转babel6去掉babel polyfill时候没测试到 , 如果急用应该可以先加个polyfill

n7best avatar Dec 27 '16 06:12 n7best

嗯嗯,已经使用了polyfill

MichaelIT avatar Dec 27 '16 06:12 MichaelIT

@n7best 这个问题 大约什么时候解决

cooper-q avatar Dec 30 '16 09:12 cooper-q