sliftutils 1.9.3 → 1.9.5
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 +1 -1
- package/render-utils/Input.tsx +5 -0
package/package.json
CHANGED
package/render-utils/Input.tsx
CHANGED
|
@@ -237,6 +237,11 @@ export class Input extends preact.Component<InputProps> {
|
|
|
237
237
|
let newValue = roundToDecimals((+this.elem.value || 0) + delta, decimals);
|
|
238
238
|
e.currentTarget.value = newValue.toString();
|
|
239
239
|
callback?.(e as unknown as preact.JSX.TargetedInputEvent<HTMLInputElement>);
|
|
240
|
+
if (!hot) {
|
|
241
|
+
props.onChange?.(e as unknown as preact.JSX.TargetedEvent<HTMLInputElement>);
|
|
242
|
+
}
|
|
243
|
+
props.onChangeValue?.(e.currentTarget.value);
|
|
244
|
+
this.lastValue = e.currentTarget.value;
|
|
240
245
|
}
|
|
241
246
|
}
|
|
242
247
|
let { noEnterKeyBlur, onInput, onChange } = props;
|