在react中使用antd时出现form和select联合使用后select无法使用placeholder
代码截图如下
界面展示如下
解决方法:将initialValue值写为undefined即可
代码截图如下
界面截图如下
参考地址:
- https://www.cnblogs.com/lidedong/p/9970000.html
- https://www.cnblogs.com/greenteaone/p/11392468.html
原文链接:https://blog.csdn.net/weixin_39893889/article/details/102496297
本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。
还没有人抢沙发呢~