mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
Fixes #2010: Better management of enablement state in find widget
This commit is contained in:
@@ -107,6 +107,14 @@ export class FindInput extends Widget {
|
||||
this.caseSensitive.disable();
|
||||
}
|
||||
|
||||
public setEnabled(enabled:boolean): void {
|
||||
if (enabled) {
|
||||
this.enable();
|
||||
} else {
|
||||
this.disable();
|
||||
}
|
||||
}
|
||||
|
||||
public clear(): void {
|
||||
this.clearValidation();
|
||||
this.setValue('');
|
||||
|
||||
Reference in New Issue
Block a user