fix input box issues (#15587)

This commit is contained in:
Alan Ren
2021-05-27 09:35:59 -07:00
committed by GitHub
parent b75e688a7e
commit 3946cee33c
4 changed files with 30 additions and 0 deletions

View File

@@ -1074,6 +1074,14 @@ class InputBoxWrapper extends ComponentWrapper implements azdata.InputBoxCompone
this.setProperty('validationErrorMessage', v);
}
public get maxLength(): number | undefined {
return this.properties['maxLength'];
}
public set maxLength(v: number | undefined) {
this.setProperty('maxLength', v);
}
public get onTextChanged(): vscode.Event<any> {
let emitter = this._emitterMap.get(ComponentEventType.onDidChange);
return emitter && emitter.event;