Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(module:dropdown): restore escape and hide backdrop when disabled #3831

Merged
merged 1 commit into from
Jul 28, 2019

Conversation

lppedd
Copy link
Contributor

@lppedd lppedd commented Jul 19, 2019

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[X] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

After PR #3769, I noticed that to exit the dropdown, one must click on the backdrop DOM element.
Being with nzBackdrop=false there was no such element, it was not possible to hide the visible dropdown.

What is the new behavior?

When nzBackdrop=false, the backdrop is present, but opacity is always set to 0.
Also, the Escape functionality to hide the dropdown has been restored, as it was lost when the Component has been refactored to a Directive (cdk-connected-overlay is no more present).

Does this PR introduce a breaking change?

[ ] Yes
[X] No

@codecov
Copy link

codecov bot commented Jul 19, 2019

Codecov Report

Merging #3831 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3831      +/-   ##
==========================================
+ Coverage   95.36%   95.36%   +<.01%     
==========================================
  Files         723      723              
  Lines       14722    14724       +2     
  Branches     1937     1937              
==========================================
+ Hits        14040    14042       +2     
  Misses        249      249              
  Partials      433      433
Impacted Files Coverage Δ
components/dropdown/nz-dropdown.directive.ts 89.22% <100%> (+0.13%) ⬆️
components/time-picker/time-holder.ts 96.57% <0%> (-0.69%) ⬇️
components/select/nz-option-container.component.ts 97.67% <0%> (+2.32%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b247bf1...e6fcea0. Read the comment docs.

@netlify
Copy link

netlify bot commented Jul 19, 2019

Deploy preview for ng-zorro-master ready!

Built with commit e6fcea0

https://deploy-preview-3831--ng-zorro-master.netlify.com

Copy link
Member

@vthinkxie vthinkxie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM close #3835

@chensimeng chensimeng merged commit b758572 into NG-ZORRO:master Jul 28, 2019
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this pull request Apr 9, 2020
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants