@etsoo/react 1.8.97 → 1.8.99

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.
@@ -67,7 +67,9 @@ var ReactUtils;
67
67
  // input.value = newValue will not trigger the change event
68
68
  // input type = 'hidden' will also not trigger the event
69
69
  // https://coryrylan.com/blog/trigger-input-updates-with-react-controlled-inputs
70
- var nativeInputValueSetter = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, property)?.set;
70
+ var nativeInputValueSetter = Object.getOwnPropertyDescriptor(input.type === "textarea"
71
+ ? HTMLTextAreaElement.prototype
72
+ : HTMLInputElement.prototype, property)?.set;
71
73
  if (checked) {
72
74
  const checkedValue = input.value == value;
73
75
  nativeInputValueSetter?.call(input, checkedValue);
@@ -64,7 +64,9 @@ export var ReactUtils;
64
64
  // input.value = newValue will not trigger the change event
65
65
  // input type = 'hidden' will also not trigger the event
66
66
  // https://coryrylan.com/blog/trigger-input-updates-with-react-controlled-inputs
67
- var nativeInputValueSetter = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, property)?.set;
67
+ var nativeInputValueSetter = Object.getOwnPropertyDescriptor(input.type === "textarea"
68
+ ? HTMLTextAreaElement.prototype
69
+ : HTMLInputElement.prototype, property)?.set;
68
70
  if (checked) {
69
71
  const checkedValue = input.value == value;
70
72
  nativeInputValueSetter?.call(input, checkedValue);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.8.97",
3
+ "version": "1.8.99",
4
4
  "description": "TypeScript ReactJs UI Independent Framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -38,12 +38,12 @@
38
38
  "@emotion/css": "^11.13.5",
39
39
  "@emotion/react": "^11.14.0",
40
40
  "@emotion/styled": "^11.14.1",
41
- "@etsoo/appscript": "^1.6.72",
41
+ "@etsoo/appscript": "^1.6.73",
42
42
  "@etsoo/notificationbase": "^1.1.74",
43
43
  "@etsoo/shared": "^1.2.90",
44
- "react": "^19.2.7",
45
- "react-dom": "^19.2.7",
46
- "react-router-dom": "^7.18.1",
44
+ "react": "^19.2.8",
45
+ "react-dom": "^19.2.8",
46
+ "react-router-dom": "^7.18.2",
47
47
  "react-window": "^2.3.0"
48
48
  },
49
49
  "devDependencies": {
@@ -51,12 +51,12 @@
51
51
  "@babel/plugin-transform-runtime": "^8.0.1",
52
52
  "@babel/preset-env": "^8.0.2",
53
53
  "@babel/runtime-corejs3": "^8.0.0",
54
- "@testing-library/jest-dom": "^7.0.0",
54
+ "@testing-library/jest-dom": "^7.0.1",
55
55
  "@testing-library/react": "^16.3.2",
56
- "@types/react": "^19.2.17",
57
- "@types/react-dom": "^19.2.3",
58
- "@vitejs/plugin-react": "^6.0.3",
59
- "jsdom": "^29.1.1",
56
+ "@types/react": "^19.2.18",
57
+ "@types/react-dom": "^19.2.4",
58
+ "@vitejs/plugin-react": "^6.0.5",
59
+ "jsdom": "^30.0.1",
60
60
  "typescript": "^7.0.2",
61
61
  "vitest": "^4.1.10"
62
62
  },
@@ -76,7 +76,9 @@ export namespace ReactUtils {
76
76
  // input type = 'hidden' will also not trigger the event
77
77
  // https://coryrylan.com/blog/trigger-input-updates-with-react-controlled-inputs
78
78
  var nativeInputValueSetter = Object.getOwnPropertyDescriptor(
79
- HTMLInputElement.prototype,
79
+ input.type === "textarea"
80
+ ? HTMLTextAreaElement.prototype
81
+ : HTMLInputElement.prototype,
80
82
  property
81
83
  )?.set;
82
84