@arcblock/ux 2.1.37 → 2.1.40

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.
@@ -94,7 +94,9 @@ function LocaleSelector(props) {
94
94
  onMouseEnter: () => {
95
95
  setOpen(true);
96
96
  },
97
- onMouseLeave: onClose
97
+ onMouseLeave: () => {
98
+ setOpen(false);
99
+ }
98
100
  } : {
99
101
  onClick: () => {
100
102
  setOpen(!open);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/ux",
3
- "version": "2.1.37",
3
+ "version": "2.1.40",
4
4
  "description": "Common used react components for arcblock products",
5
5
  "keywords": [
6
6
  "react",
@@ -52,10 +52,10 @@
52
52
  "react": ">=18.1.0",
53
53
  "react-ga": "^2.7.0"
54
54
  },
55
- "gitHead": "4b1bb7cefb268cc14e165197a417bfe52ca79711",
55
+ "gitHead": "a5a95afc20fc56c089c46c81dda7e8ff4b48744a",
56
56
  "dependencies": {
57
- "@arcblock/icons": "^2.1.37",
58
- "@arcblock/react-hooks": "^2.1.37",
57
+ "@arcblock/icons": "^2.1.40",
58
+ "@arcblock/react-hooks": "^2.1.40",
59
59
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
60
60
  "@emotion/react": "^11.9.0",
61
61
  "@emotion/styled": "^11.8.1",
@@ -49,7 +49,9 @@ function LocaleSelector(props) {
49
49
  onMouseEnter: () => {
50
50
  setOpen(true);
51
51
  },
52
- onMouseLeave: onClose,
52
+ onMouseLeave: () => {
53
+ setOpen(false);
54
+ },
53
55
  }
54
56
  : {
55
57
  onClick: () => {
@@ -126,6 +128,7 @@ export default LocaleSelector;
126
128
 
127
129
  const Div = styled.div`
128
130
  display: inline-block;
131
+
129
132
  .trigger {
130
133
  display: flex;
131
134
  flex-direction: column;