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 typeahead's breaking if typeahead property receives NULL #4957

Merged
merged 4 commits into from Dec 21, 2018

Conversation

ghost
Copy link

@ghost ghost commented Dec 19, 2018

Closes to #4417

@ghost ghost added the needs review label Dec 19, 2018
@codecov
Copy link

codecov bot commented Dec 19, 2018

Codecov Report

Merging #4957 into development will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@              Coverage Diff               @@
##           development   #4957      +/-   ##
==============================================
+ Coverage        74.79%   74.8%   +0.01%     
==============================================
  Files              277     277              
  Lines             8434    8434              
  Branches          1602    1603       +1     
==============================================
+ Hits              6308    6309       +1     
+ Misses            1683    1679       -4     
- Partials           443     446       +3
Impacted Files Coverage Δ
src/typeahead/typeahead.directive.ts 76.53% <100%> (+1.02%) ⬆️
src/datepicker/engine/flag-days-calendar.ts 75% <0%> (-6.25%) ⬇️
src/chronos/utils/date-getters.ts 79.54% <0%> (-2.28%) ⬇️
src/datepicker/reducer/bs-datepicker.effects.ts 74.31% <0%> (+1.83%) ⬆️

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 ac7b7a3...be30099. Read the comment docs.

@codecov
Copy link

codecov bot commented Dec 19, 2018

Codecov Report

Merging #4957 into development will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #4957      +/-   ##
===============================================
+ Coverage        74.79%   74.83%   +0.04%     
===============================================
  Files              277      277              
  Lines             8434     8436       +2     
  Branches          1602     1603       +1     
===============================================
+ Hits              6308     6313       +5     
+ Misses            1678     1677       -1     
+ Partials           448      446       -2
Impacted Files Coverage Δ
src/typeahead/typeahead.directive.ts 76.76% <100%> (+1.25%) ⬆️
src/chronos/i18n/sk.ts 80.85% <0%> (-2.13%) ⬇️
src/chronos/i18n/cs.ts 84.74% <0%> (-1.7%) ⬇️
src/chronos/i18n/pl.ts 74.35% <0%> (ø) ⬆️
src/chronos/i18n/uk.ts 80.48% <0%> (+2.43%) ⬆️
src/chronos/i18n/it.ts 100% <0%> (+28.57%) ⬆️

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 9fe4acc...b33d41e. Read the comment docs.

@@ -448,6 +448,9 @@ export class TypeaheadDirective implements OnInit, OnDestroy {
}

protected finalizeAsyncCall(matches: TypeaheadMatch[]): void {
if (!matches) {
return;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return;
matches = [];

Copy link
Author

Choose a reason for hiding this comment

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

fixed in other way

@@ -78,6 +78,9 @@ export class DemoTypeaheadAsyncComponent {

getStatesAsObservable(token: string): Observable<any> {
const query = new RegExp(token, 'i');
if (!this.statesComplex) {
Copy link
Member

Choose a reason for hiding this comment

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

remove after testing

Copy link
Author

Choose a reason for hiding this comment

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

removed

@valorkin valorkin merged commit 3f536bf into valor-software:development Dec 21, 2018
@ghost ghost removed the needs review label Dec 21, 2018
leo6104 pushed a commit to leo6104/ngx-bootstrap that referenced this pull request Oct 10, 2019
…es NULL (valor-software#4957)

* fix(typeahead): Typeahead breaks if typeahead property receives NULL

* fix(typeahead): restore typehead-directive file

* feat(typeahead): add tests for new func

* fix(typeahead): rework existing pr

Fixes valor-software#4417
IraErshova pushed a commit to IraErshova/ngx-bootstrap that referenced this pull request Jan 20, 2020
…es NULL (valor-software#4957)

* fix(typeahead): Typeahead breaks if typeahead property receives NULL

* fix(typeahead): restore typehead-directive file

* feat(typeahead): add tests for new func

* fix(typeahead): rework existing pr

Fixes valor-software#4417
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