mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 09:35:38 -05:00
Remove tooltip from editable dropdown (#4542)
* Fix our custom dropdown control to update the tooltip text correctly when a new value is selected. Previous behavior was to always keep the initial text (<Default> for example). Now we'll update it as appropriate (and default back to Placeholder text when we're clearing the value) * Spaces -> tabs * Remove extra ; * Remove tooltips from the text box part of the dropdown * Remove tooltips from dropdown arrows * Revert "Remove tooltips from dropdown arrows" This reverts commit 31a0748aaea42d5009eb9752bd075ce49a6716f5.
This commit is contained in:
@@ -129,6 +129,10 @@ export class Dropdown extends Disposable {
|
||||
ariaLabel: this._options.ariaLabel
|
||||
});
|
||||
|
||||
// Clear title from input box element (defaults to placeholder value) since we don't want a tooltip for the selected value
|
||||
// in the text box - we already have tooltips for each item in the dropdown itself.
|
||||
this._input.inputElement.title = '';
|
||||
|
||||
this._register(DOM.addDisposableListener(this._input.inputElement, DOM.EventType.CLICK, () => {
|
||||
this._showList();
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user