NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.87k stars 3.94k forks source link

[drawer] mask prevents user interaction when nzMask is set to false #5350

Open Melmoth-the-Wanderer opened 4 years ago

Melmoth-the-Wanderer commented 4 years ago

Reproduction link

https://stackblitz.com/edit/angular-qcw7sq

Steps to reproduce

1) disable drawer's mask by setting nzMask to false 2) open drawer

What is expected?

What is actually happening?

Environment Info
ng-zorro-antd 8.5.2
Browser Chrome 81.0.4044.138 (64-bits)

Rationale: our app is splitted into 2 parts: left side with the tree and right side with tabular data. Clicking table's row on the right side brings the drawer over the table (right side). Now, we would like to drag tree nodes from left side of an app onto the drawer for some reasons. Currently this isn't possible since the mask is always there, transparent - preventing users from dragging the tree node.

Please note that this also happens for ng-zorro-antd@9.2.1

molog commented 3 years ago

It's not fixed. There is still a transparent layer when [nzMask]="false" version 12.0.1

wzhudev commented 3 years ago

@molog Could you please provide a reproduction? We will looks into this. Thanks!

molog commented 3 years ago

@wendellhu95 https://codesandbox.io/s/stupefied-moon-qg8h2?file=/src/app/app.component.ts The mask is not visible with [nzMask]="false", but still cannot interact with elements outside the drawer.

xdrago1 commented 2 years ago

same problem

coderbahrom commented 2 years ago

how to fix when drawer open background is dark

wenqi73 commented 2 years ago

Need a style of width and height on https://github.com/NG-ZORRO/ng-zorro-antd/blob/64e1c7cf2bd3b094a0124ed8ddb51edab284b927/components/drawer/drawer.component.ts#L61

zorro-bot[bot] commented 2 years ago

Hello @Melmoth-the-Wanderer. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please fill the Pull Request Template here, provide documentation/test cases if needed and make sure CI passed, we will review it soon. Appreciate it advance and we are looking forward to your contribution!

你好 @Melmoth-the-Wanderer, 我们完全同意你的提议/反馈,欢迎直接在此仓库 创建一个 Pull Request 来解决这个问题。请务必填写 Pull Request 内的预设模板,提供改动所需相应的测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献! giphy

Userluckytian commented 1 year ago

Temporary solution: I am failed in styles.scss file write deep style, it is not worked;

but in app.component.scss file is OK:

   ::ng-deep .ant-drawer-right.ant-drawer-open{
    width: auto !important;
  }