Skip to content

Commit

Permalink
Merge pull request #59 from hrynko/fix-focus
Browse files Browse the repository at this point in the history
fix(lib): fixed focus with tabindex
  • Loading branch information
AnthonyNahas authored Mar 25, 2021
2 parents d44f9c3 + cda8b14 commit 8ac4cae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ Other modules in your application like for lazy loading import `MatSelectCountry
| loading | `Input()` | `boolean` | - | Whether the component is loading |
| nullable | `Input()` | `boolean` | - | Whether the component is able to emit `null` |
| readonly | `Input()` | `boolean` | - | Whether the component is read only |
| tabIndex | `Input()` | `number | string` | - | Whether the component can be focused, and where it participates in sequential keyboard navigation |
| showCallingCode | `Input()` | `boolean` | false | Whether the component to show the country's calling code in the label and selection |
| class | `Input()` | `string` | - | Class attribute apply style to input text or validation ignore (optional) |
| onCountrySelected | `Output()` | `EventEmitter<Country>` | - | emits the selected country as object (see the interface below) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
[matAutocomplete]="this.countryAutocomplete"
[placeholder]="this.placeHolder"
[readonly]="this.readonly"
[tabIndex]="tabIndex"
[value]="showCallingCode ? this.value?.callingCode : this.value?.name"
[required]="this.required"
[disabled]="this.disabled || this.loadingDB"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export class MatSelectCountryComponent
@Input() disabled: boolean;
@Input() nullable: boolean;
@Input() readonly: boolean;
@Input() tabIndex: number | string;
@Input() class: string;
@Input() itemsLoadSize: number;
@Input() loading: boolean;
Expand Down

0 comments on commit 8ac4cae

Please sign in to comment.