@etsoo/materialui 1.2.44 → 1.2.46

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/lib/Tiplist.js CHANGED
@@ -174,7 +174,7 @@ export function Tiplist(props) {
174
174
  onValueChange(value);
175
175
  // For clear case
176
176
  if (reason === "clear") {
177
- stateUpdate({ options: [], open: true });
177
+ stateUpdate({ options: [], open: event.type === "click" });
178
178
  loadDataDirect();
179
179
  }
180
180
  }, open: states.open, openOnFocus: openOnFocus, onOpen: () => {
package/lib/TiplistPro.js CHANGED
@@ -165,7 +165,7 @@ export function TiplistPro(props) {
165
165
  }
166
166
  // For clear case
167
167
  if (reason === "clear") {
168
- stateUpdate({ options: [], open: true });
168
+ stateUpdate({ options: [], open: event.type === "click" });
169
169
  loadDataDirect();
170
170
  }
171
171
  }, open: states.open, openOnFocus: openOnFocus, onOpen: () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.2.44",
3
+ "version": "1.2.46",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -50,9 +50,9 @@
50
50
  "@emotion/css": "^11.11.0",
51
51
  "@emotion/react": "^11.11.0",
52
52
  "@emotion/styled": "^11.11.0",
53
- "@etsoo/appscript": "^1.4.8",
53
+ "@etsoo/appscript": "^1.4.9",
54
54
  "@etsoo/notificationbase": "^1.1.25",
55
- "@etsoo/react": "^1.6.85",
55
+ "@etsoo/react": "^1.6.86",
56
56
  "@etsoo/shared": "^1.2.5",
57
57
  "@mui/icons-material": "^5.11.16",
58
58
  "@mui/material": "^5.13.0",
@@ -85,8 +85,8 @@
85
85
  "@testing-library/jest-dom": "^5.16.5",
86
86
  "@testing-library/react": "^14.0.0",
87
87
  "@types/jest": "^29.5.1",
88
- "@typescript-eslint/eslint-plugin": "^5.59.5",
89
- "@typescript-eslint/parser": "^5.59.5",
88
+ "@typescript-eslint/eslint-plugin": "^5.59.6",
89
+ "@typescript-eslint/parser": "^5.59.6",
90
90
  "jest": "^29.5.0",
91
91
  "jest-environment-jsdom": "^29.5.0",
92
92
  "typescript": "^5.0.4"
package/src/Tiplist.tsx CHANGED
@@ -297,7 +297,7 @@ export function Tiplist<
297
297
 
298
298
  // For clear case
299
299
  if (reason === "clear") {
300
- stateUpdate({ options: [], open: true });
300
+ stateUpdate({ options: [], open: event.type === "click" });
301
301
  loadDataDirect();
302
302
  }
303
303
  }}
@@ -309,7 +309,7 @@ export function TiplistPro<T extends ListType2 = ListType2>(
309
309
 
310
310
  // For clear case
311
311
  if (reason === "clear") {
312
- stateUpdate({ options: [], open: true });
312
+ stateUpdate({ options: [], open: event.type === "click" });
313
313
  loadDataDirect();
314
314
  }
315
315
  }}