Skip to content

Commit

Permalink
chore(select): Address comments #5911
Browse files Browse the repository at this point in the history
  • Loading branch information
IvayloG committed Nov 19, 2019
1 parent b42308c commit 8571f47
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ All notable changes for each version of this project will be documented in this
</ng-template>
</igx-grid>


- `IgxSelect`:
- adding `IgxSelectHeaderDirective` and `IgxSelectFooterDirective`. These can be used to provide a custom header, respectively footer templates for the `igxSelect` drop-down list. If there are no templates marked with these directives - no default templates will be used so the drop-down list will not have header or footer.
- adding `IgxSelectHeaderDirective` and `IgxSelectFooterDirective`. These can be used to provide a custom header, respectively footer templates for the `igxSelect` drop-down list. If there are no templates marked with these directives - no default templates will be used so the drop-down list will not have header nor footer.

- `IgxCarousel`:
- `keyboardSupport` input is added, which can be used to enable and disable keyboard navigation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class IgxComboDropDownComponent extends IgxDropDownComponent implements I
}

/** @hidden @internal */
public get scrollContainer() {
public get scrollContainer(): HTMLElement {
return this.virtDir.dc.location.nativeElement;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class IgxDropDownBaseDirective extends DisplayDensityBase implements IDro
* @hidden @internal
* Get dropdown's html element of its scroll container
*/
public get scrollContainer() {
public get scrollContainer(): HTMLElement {
return this.element;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class IgxDropDownComponent extends IgxDropDownBaseDirective implements ID
}

/** @hidden @internal */
public get scrollContainer() {
public get scrollContainer(): HTMLElement {
return this.scrollContainerRef.nativeElement;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ export class IgxSelectItemComponent extends IgxDropDownItemComponent implements
}

public set selected(value: any) {
if (value && !this.isHeader && !this.disabled) { // TODO: Refactor: inherited isHeader is regarding group items
// not an actual(select) header.
if (value && !this.isHeader && !this.disabled) {
this.dropDown.selectItem(this);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IgxInputState } from './../directives/input/input.directive';
import { Component, ViewChild, DebugElement } from '@angular/core';
import { Component, ViewChild, DebugElement, OnInit } from '@angular/core';
import { async, TestBed, tick, fakeAsync } from '@angular/core/testing';
import { FormsModule, FormGroup, FormBuilder, FormControl, Validators, ReactiveFormsModule, NgForm } from '@angular/forms';
import { By } from '@angular/platform-browser';
Expand Down

0 comments on commit 8571f47

Please sign in to comment.