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): Typeahead shows list on focus when minLenth is 0. #1918

Closed

Conversation

tzielins
Copy link

Fixes #1559

Currently typeahead does not show list on focus when typeaheadMinLength="0" even is such behaviour is documented.

onFocus method is comparing minLength with 0, while the angular sets input property to string '0' and no event is emitted.

Fixed the issue by replacing === with == in the comparison.

@codecov
Copy link

codecov bot commented Apr 19, 2017

Codecov Report

Merging #1918 into development will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff              @@
##           development    #1918   +/-   ##
============================================
  Coverage        85.93%   85.93%           
============================================
  Files               78       78           
  Lines             2098     2098           
  Branches           273      273           
============================================
  Hits              1803     1803           
  Misses             202      202           
  Partials            93       93
Impacted Files Coverage Δ
src/typeahead/typeahead.directive.ts 76.27% <0%> (ø) ⬆️

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 60fe034...6fe09df. Read the comment docs.

@tzielins tzielins closed this Apr 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant