sliftutils 0.81.0 → 0.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -297,7 +297,7 @@ export class InputLabelURL extends preact.Component<InputLabelProps & {
|
|
|
297
297
|
this.props.persisted.value;
|
|
298
298
|
let props = { ...this.props };
|
|
299
299
|
if (props.type === "number" || props.number) {
|
|
300
|
-
return <InputLabel {...props} value={Number(props.persisted.value) || 0} onChange={e => { props.persisted.value = e.currentTarget.value; props.onChange?.(e); }} />;
|
|
300
|
+
return <InputLabel {...props} value={Number(props.persisted.value) || 0} onChange={e => { props.persisted.value = +e.currentTarget.value; props.onChange?.(e); }} />;
|
|
301
301
|
} else if (props.type === "checkbox" || this.props.checkbox) {
|
|
302
302
|
return <InputLabel
|
|
303
303
|
{...props}
|