完整报错如下:
//收到非布尔属性' selectable '的' false '。
//如果你想把它写入DOM,传递一个字符串:selectable="false"或selectable={value.toString()}。
//如果您以前使用selectable={condition && value}有条件地忽略它,那么传递selectable={condition ?值:undefined}。
devScripts.js:6523 Warning: Received `false` for a non-boolean attribute `selectable`.
If you want to write it to the DOM, pass a string instead: selectable="false" or selectable={value.toString()}.
If you used to conditionally omit it with selectable={condition && value}, pass selectable={condition ? value : undefined} instead.
全局搜了下并没有用到 selectable属性,测试发现是用了Spin组件导致的。
<Spin spinning={ loading} delay={300}></Spin>
查看了ant的文档,发现用的没有问题,查看了Spin组件的源码,也没有发现有用到
selectable属性,很奇怪。只能把这个组件给换了。