环境
antd: ^5.14.1react: ^18
问题情况
<Drawer open={open} closable={false} mask={false} width={680}
getContainer={props.getContainer || undefined}>
<p>Some contents...</p>
<p>Some contents...</p>
<p>Some contents...</p>
</Drawer>

此时mask是false,也就是不需要蒙蔽状态下,刷新页面会发现多出一个黑边,鼠标点击后又消失了;
原因
原因是谷歌浏览器的:focus-visible样式设定

解决
将组件的autoFocus属性设为false,可以解决刷新、点击等操作下不显示黑边,但不是彻底解决这个问题

![[网络] 网络层--IP协议](https://i-blog.csdnimg.cn/direct/0e962460f50047078fd1f8307d496580.png)












![[大语言模型-论文精读] ACL2024-长尾知识在检索增强型大型语言模型中的作用](https://i-blog.csdnimg.cn/direct/2f55eb0940c041ba9054ad4ba25c565e.png)




