fix: drawer maskstyle not work #2407

pull/2465/head
tangjinzhou 2020-06-13 14:35:47 +08:00
parent 413793234b
commit 65ea66da36
1 changed files with 1 additions and 0 deletions

View File

@ -474,6 +474,7 @@ const Drawer = {
<div {...domContProps} tabIndex={-1}>
{showMask && (
<div
key={open} // 第二次渲染时虚拟DOM没有改变没有出发dom更新使用key强制更新 https://github.com/vueComponent/ant-design-vue/issues/2407
class={`${prefixCls}-mask`}
onClick={maskClosable ? this.onMaskTouchEnd : noop}
style={maskStyle}