mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 17:22:29 -05:00
Bug/accessibility - Focus related issues (#6859)
* fix for https://github.com/microsoft/azuredatastudio/issues/6798 * fix for https://github.com/microsoft/azuredatastudio/issues/6851
This commit is contained in:
@@ -74,8 +74,8 @@ export default class RadioButtonComponent extends ComponentBase implements IComp
|
||||
this._input.value = this.value;
|
||||
this._input.label = this.label;
|
||||
this._input.enabled = this.enabled;
|
||||
|
||||
this._input.checked = this.checked;
|
||||
this.focused ? this._input.focus() : this._input.blur();
|
||||
}
|
||||
|
||||
// CSS-bound properties
|
||||
@@ -115,4 +115,12 @@ export default class RadioButtonComponent extends ComponentBase implements IComp
|
||||
public set name(newValue: string) {
|
||||
this.setPropertyFromUI<azdata.RadioButtonProperties, string>((properties, label) => { properties.name = label; }, newValue);
|
||||
}
|
||||
|
||||
public get focused(): boolean {
|
||||
return this.getPropertyOrDefault<azdata.RadioButtonProperties, boolean>((props) => props.focused, false);
|
||||
}
|
||||
|
||||
public set focused(newValue: boolean) {
|
||||
this.setPropertyFromUI<azdata.RadioButtonProperties, boolean>((properties, value) => { properties.focused = value; }, newValue);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user