sliftutils 1.8.15 → 1.8.16

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.8.15",
3
+ "version": "1.8.16",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -216,7 +216,11 @@ export class InputLabel extends preact.Component<InputLabelProps> {
216
216
  if (props.edit) {
217
217
  this.synced.editInputValue = e.currentTarget.value;
218
218
  }
219
- props.onInput?.(e);
219
+ if (props.onInput) {
220
+ props.onInput(e);
221
+ } else if (props.hot) {
222
+ props.onChange?.(e);
223
+ }
220
224
  }}
221
225
  />;
222
226