mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -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.onBlur(() => {
|
||||||
this.contextViewService.hideContextView();
|
this.contextViewService.hideContextView();
|
||||||
|
this._input.validate();
|
||||||
});
|
});
|
||||||
|
|
||||||
this._register(this._tree);
|
this._register(this._tree);
|
||||||
@@ -301,7 +302,7 @@ export class Dropdown extends Disposable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _inputValidator(value: string): IMessage | null {
|
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) {
|
if (this._options.strictSelection && this._options.errorMessage) {
|
||||||
return {
|
return {
|
||||||
content: this._options.errorMessage,
|
content: this._options.errorMessage,
|
||||||
|
|||||||
Reference in New Issue
Block a user