Skip to content

Commit 65ea66d

Browse files
committed
fix: drawer maskstyle not work #2407
1 parent 4137932 commit 65ea66d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/vc-drawer/src/Drawer.js

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

0 commit comments

Comments
 (0)