This commit is contained in:
Infinite
2020-02-13 19:57:25 +01:00
parent 8fe6eb0d77
commit 750759e4bf
20 changed files with 120 additions and 100 deletions

View File

@@ -78,7 +78,9 @@ export const DurationInput: React.FC<IProps> = (props: IProps) => {
className="duration-control"
disabled={props.disabled}
value={value}
onChange={(e: React.FormEvent<HTMLInputElement>) => setValue(e.currentTarget.value)}
onChange={(e: React.FormEvent<HTMLInputElement>) =>
setValue(e.currentTarget.value)
}
onBlur={() =>
props.onValueChange(DurationUtils.stringToSeconds(value))
}