mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
parent
63335523e6
commit
4266e06e07
|
@ -265,6 +265,14 @@ export class InputBox extends Widget {
|
|||
}
|
||||
}
|
||||
|
||||
public get step(): string {
|
||||
return this.input.step;
|
||||
}
|
||||
|
||||
public set step(newValue: string) {
|
||||
this.input.step = newValue;
|
||||
}
|
||||
|
||||
public get height(): number {
|
||||
return typeof this.cachedHeight === 'number' ? this.cachedHeight : dom.getTotalHeight(this.element);
|
||||
}
|
||||
|
|
|
@ -1758,6 +1758,7 @@ export class SettingNumberRenderer extends AbstractSettingRenderer implements IT
|
|||
|
||||
template.onChange = undefined;
|
||||
template.inputBox.value = dataElement.value;
|
||||
template.inputBox.step = dataElement.valueType.includes('integer') ? '1' : 'any';
|
||||
template.inputBox.setAriaLabel(dataElement.setting.key);
|
||||
template.onChange = value => {
|
||||
if (!renderValidations(dataElement, template, false)) {
|
||||
|
|
Loading…
Reference in a new issue