mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 01:25:36 -05:00
Add tooltip to input box on disabled dropdowns (#16468)
This commit is contained in:
@@ -145,6 +145,9 @@ export default class DropDownComponent extends ComponentBase<azdata.DropDownProp
|
||||
}
|
||||
this._editableDropdown.enabled = this.enabled;
|
||||
this._editableDropdown.fireOnTextChange = this.fireOnTextChange;
|
||||
|
||||
// Add tooltip when editable dropdown is disabled to show overflow text
|
||||
this._editableDropdown.input.setTooltip(!this.enabled ? this._editableDropdown.input.value : '');
|
||||
} else {
|
||||
this._selectBox.setOptions(this.getValues());
|
||||
this._selectBox.selectWithOptionName(this.getSelectedValue());
|
||||
|
||||
Reference in New Issue
Block a user