Skip to content

Commit a692b41

Browse files
authored
Merge branch 'master' into sstoychev/change-deps-for-es
2 parents 04fcdbe + 896133e commit a692b41

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Ignite UI for Angular Change Log
22

33
All notable changes for each version of this project will be documented in this file.
4+
## 14.2.0
5+
6+
- `IgxDropDown`
7+
- The `aria-label` attribute of the `IgxDropDownItemBase` can now be se to a custom value for its descendants (of which `IgxDropDownItem`) by the `ariaLabel` property.
48

59
## 14.2.0
610

projects/igniteui-angular/src/lib/drop-down/drop-down-item.base.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ export class IgxDropDownItemBaseDirective implements DoCheck {
3434
@HostBinding('attr.aria-label')
3535
@Input()
3636
public get ariaLabel(): string {
37-
return this.value ? this.value : this.id;
37+
return this._label ? this._label : this.value ? this.value : this.id;
38+
}
39+
40+
public set ariaLabel(value: string) {
41+
this._label = value;
3842
}
3943

4044
/**
@@ -282,6 +286,7 @@ export class IgxDropDownItemBaseDirective implements DoCheck {
282286
protected _selected = false;
283287
protected _index = null;
284288
protected _disabled = false;
289+
protected _label = null;
285290

286291
constructor(
287292
@Inject(IGX_DROPDOWN_BASE) protected dropDown: IDropDownBase,

projects/igniteui-angular/src/lib/radio/radio.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,6 @@ export class IgxRadioComponent implements ControlValueAccessor, EditorProvider,
389389
* @memberof IgxRadioComponent
390390
*/
391391
public select() {
392-
this.nativeRadio.nativeElement.focus();
393-
394392
if(!this.checked) {
395393
this.checked = true;
396394
this.change.emit({ value: this.value, radio: this });

0 commit comments

Comments
 (0)