@mw-kit/mw-ui 1.8.9 → 1.8.10

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/dist/index.js CHANGED
@@ -14843,8 +14843,7 @@ var Submenu = (props) => {
14843
14843
  );
14844
14844
  if (index2 !== -1) {
14845
14845
  if (newState[index2].value === option.value) return prev;
14846
- newState[index2].value = option.value;
14847
- return [...newState];
14846
+ newState.splice(index2, 1);
14848
14847
  }
14849
14848
  newState.push({
14850
14849
  name: item.name,
package/dist/index.mjs CHANGED
@@ -14786,8 +14786,7 @@ var Submenu = (props) => {
14786
14786
  );
14787
14787
  if (index2 !== -1) {
14788
14788
  if (newState[index2].value === option.value) return prev;
14789
- newState[index2].value = option.value;
14790
- return [...newState];
14789
+ newState.splice(index2, 1);
14791
14790
  }
14792
14791
  newState.push({
14793
14792
  name: item.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mw-kit/mw-ui",
3
- "version": "1.8.9",
3
+ "version": "1.8.10",
4
4
  "description": "Made with create-react-library",
5
5
  "author": "fmgusmao",
6
6
  "license": "MIT",