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(typeahead): fix flickering #3321

Merged
merged 1 commit into from
Jan 9, 2018
Merged

Conversation

IlyaSurmay
Copy link
Contributor

@IlyaSurmay IlyaSurmay commented Dec 20, 2017

Fixes #3315

PR Checklist

Before creating new PR, please take a look at checklist below to make sure that you've done everything that needs to be done before we can merge it.

  • read and followed the CONTRIBUTING.md guide.
  • built and tested the changes locally.
  • added/updated tests.
  • added/updated API documentation.
  • added/updated demos.

@codecov
Copy link

codecov bot commented Dec 20, 2017

Codecov Report

Merging #3321 into development will decrease coverage by 0.44%.
The diff coverage is 20%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #3321      +/-   ##
===============================================
- Coverage        65.43%   64.98%   -0.45%     
===============================================
  Files              210      210              
  Lines             5647     5695      +48     
  Branches           889     1002     +113     
===============================================
+ Hits              3695     3701       +6     
+ Misses            1755     1728      -27     
- Partials           197      266      +69
Impacted Files Coverage Δ
src/typeahead/typeahead.directive.ts 73.73% <20%> (-1.92%) ⬇️
src/dropdown/bs-dropdown-menu.directive.ts 71.42% <0%> (-28.58%) ⬇️
src/tabs/tab-heading.directive.ts 66.66% <0%> (-13.34%) ⬇️
src/popover/popover-container.component.ts 90.9% <0%> (-9.1%) ⬇️
src/carousel/slide.component.ts 91.66% <0%> (-8.34%) ⬇️
src/tabs/ng-transclude.directive.ts 60% <0%> (-6.67%) ⬇️
src/popover/popover.directive.ts 82.14% <0%> (-6.32%) ⬇️
src/progressbar/progressbar.component.ts 93.75% <0%> (-6.25%) ⬇️
src/accordion/accordion.component.ts 90% <0%> (-4.74%) ⬇️
src/tooltip/tooltip-container.component.ts 72.22% <0%> (-4.25%) ⬇️
... and 30 more

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 15ae2f0...b9a15cb. Read the comment docs.

@@ -291,7 +291,13 @@ export class TypeaheadDirective implements OnInit, OnDestroy {
dropup: this.dropup
});

this._outsideClickListener = this.renderer.listen('document', 'click', () => {
this._outsideClickListener = this.renderer.listen('document', 'click', (e: MouseEvent) => {
if (this.typeaheadMinLength === 0) {

This comment was marked as off-topic.

@valorkin valorkin merged commit cf1411a into development Jan 9, 2018
@valorkin valorkin deleted the fix-typeahead-flickering branch January 9, 2018 15:56
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.

2 participants