mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 01:25:38 -05:00
Update dropdown.ts (#5290)
* Update dropdown.ts fix the issue that the filtering feature is not working * format the doc * comments
This commit is contained in:
@@ -219,6 +219,7 @@ export class Dropdown extends Disposable {
|
||||
|
||||
this.onBlur(() => {
|
||||
this.contextViewService.hideContextView();
|
||||
this._input.validate();
|
||||
});
|
||||
|
||||
this._register(this._tree);
|
||||
@@ -301,7 +302,7 @@ export class Dropdown extends Disposable {
|
||||
}
|
||||
|
||||
private _inputValidator(value: string): IMessage | null {
|
||||
if (this._dataSource.options && !this._dataSource.options.find(i => i.value === value)) {
|
||||
if (!this._input.hasFocus() && !this._tree.isDOMFocused() && this._dataSource.options && !this._dataSource.options.find(i => i.value === value)) {
|
||||
if (this._options.strictSelection && this._options.errorMessage) {
|
||||
return {
|
||||
content: this._options.errorMessage,
|
||||
|
||||
Reference in New Issue
Block a user