Add tooltip to input box on disabled dropdowns (#16468)

This commit is contained in:
Rachel Kim
2021-08-05 18:02:00 -07:00
committed by GitHub
parent 09a4dfa5b0
commit 991b9af198

View File

@@ -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());