From cda9c115283be8e4e224f6036ba07e5eca243289 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 31 Mar 2021 17:37:40 +0200 Subject: refactor tile forms into own files. add full-width marquee support --- frontend/app/common/form.component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/app/common/form.component.js') diff --git a/frontend/app/common/form.component.js b/frontend/app/common/form.component.js index de1020a..ea4c5cb 100644 --- a/frontend/app/common/form.component.js +++ b/frontend/app/common/form.component.js @@ -68,7 +68,7 @@ export class NumberInput extends Component { onKeyDown={this.handleKeyDown} onChange={props.onChange} name={props.name} - value={props.data[props.name]} + value={props.name in props.data ? props.data[props.name] : (props.defaultValue || props.min)} min={props.min} max={props.max} step={props.step || 1} -- cgit v1.2.3-70-g09d2