Skip to content

Commit

Permalink
fix: drawer maskstyle not work #2407
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Jun 13, 2020
1 parent 4137932 commit 65ea66d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/vc-drawer/src/Drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 65ea66d

Please sign in to comment.