mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 17:22:45 -05:00
fix input box issues (#15587)
This commit is contained in:
@@ -222,6 +222,7 @@ export default class InputBoxComponent extends ComponentBase<azdata.InputBoxProp
|
||||
input.setAriaLabel(this.ariaLabel);
|
||||
input.setPlaceHolder(this.placeHolder);
|
||||
input.setEnabled(this.enabled);
|
||||
input.setMaxLength(this.maxLength);
|
||||
this.layoutInputBox();
|
||||
if (this.multiline) {
|
||||
if (isNumber(this.rows)) {
|
||||
@@ -347,6 +348,10 @@ export default class InputBoxComponent extends ComponentBase<azdata.InputBoxProp
|
||||
this.setPropertyFromUI<boolean>((props, value) => props.stopEnterPropagation = value, newValue);
|
||||
}
|
||||
|
||||
public get maxLength(): number | undefined {
|
||||
return this.getPropertyOrDefault<number | undefined>((props) => props.maxLength, undefined);
|
||||
}
|
||||
|
||||
public focus(): void {
|
||||
this.inputElement.focus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user