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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sliftutils",
3
- "version": "1.9.3",
3
+ "version": "1.9.5",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -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;