@jetbrains/ring-ui 4.1.9 → 4.1.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.
|
@@ -38,11 +38,11 @@ class SelectLazy {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
attachEvents() {
|
|
41
|
-
this.container.addEventListener('click', this.onClick);
|
|
41
|
+
this.container.addEventListener('click', this.onClick, {capture: true});
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
detachEvents() {
|
|
45
|
-
this.container.removeEventListener('click', this.onClick);
|
|
45
|
+
this.container.removeEventListener('click', this.onClick, {capture: true});
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
render(props) {
|
|
@@ -59,10 +59,10 @@ class SelectLazy {
|
|
|
59
59
|
this.detachEvents();
|
|
60
60
|
if (this.type === 'dropdown') {
|
|
61
61
|
this.ctrl.selectInstance = render(this.reactSelect, this.container);
|
|
62
|
+
this.ctrl.selectInstance._openPopupIfClosed();
|
|
62
63
|
} else {
|
|
63
64
|
this.ctrl.selectInstance = hydrate(this.reactSelect, this.container);
|
|
64
65
|
}
|
|
65
|
-
this.ctrl.selectInstance._openPopupIfClosed();
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -115,11 +115,15 @@ class SelectLazy {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
attachEvents() {
|
|
118
|
-
this.container.addEventListener('click', this.onClick
|
|
118
|
+
this.container.addEventListener('click', this.onClick, {
|
|
119
|
+
capture: true
|
|
120
|
+
});
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
detachEvents() {
|
|
122
|
-
this.container.removeEventListener('click', this.onClick
|
|
124
|
+
this.container.removeEventListener('click', this.onClick, {
|
|
125
|
+
capture: true
|
|
126
|
+
});
|
|
123
127
|
}
|
|
124
128
|
|
|
125
129
|
render(props) {
|
|
@@ -138,11 +142,11 @@ class SelectLazy {
|
|
|
138
142
|
|
|
139
143
|
if (this.type === 'dropdown') {
|
|
140
144
|
this.ctrl.selectInstance = render(this.reactSelect, this.container);
|
|
145
|
+
|
|
146
|
+
this.ctrl.selectInstance._openPopupIfClosed();
|
|
141
147
|
} else {
|
|
142
148
|
this.ctrl.selectInstance = hydrate(this.reactSelect, this.container);
|
|
143
149
|
}
|
|
144
|
-
|
|
145
|
-
this.ctrl.selectInstance._openPopupIfClosed();
|
|
146
150
|
}
|
|
147
151
|
|
|
148
152
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.10",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": "JetBrains",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -82,13 +82,13 @@
|
|
|
82
82
|
"@storybook/addon-storyshots-puppeteer": "6.4.3",
|
|
83
83
|
"@storybook/addon-storysource": "6.4.9",
|
|
84
84
|
"@storybook/addons": "6.4.9",
|
|
85
|
-
"@storybook/builder-webpack5": "6.4.
|
|
85
|
+
"@storybook/builder-webpack5": "6.4.10",
|
|
86
86
|
"@storybook/client-api": "6.4.9",
|
|
87
87
|
"@storybook/core": "6.4.9",
|
|
88
|
-
"@storybook/html": "6.4.
|
|
88
|
+
"@storybook/html": "6.4.10",
|
|
89
89
|
"@storybook/manager-webpack5": "^6.4.9",
|
|
90
|
-
"@storybook/source-loader": "6.4.
|
|
91
|
-
"@storybook/theming": "6.4.
|
|
90
|
+
"@storybook/source-loader": "6.4.10",
|
|
91
|
+
"@storybook/theming": "6.4.10",
|
|
92
92
|
"@testing-library/react": "^12.1.2",
|
|
93
93
|
"@testing-library/user-event": "^13.5.0",
|
|
94
94
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.6",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"karma-teamcity-reporter": "^2.0.0",
|
|
127
127
|
"karma-webpack": "^5.0.0",
|
|
128
128
|
"lerna": "^4.0.0",
|
|
129
|
-
"lint-staged": "^12.1.
|
|
129
|
+
"lint-staged": "^12.1.6",
|
|
130
130
|
"merge-options": "^3.0.4",
|
|
131
131
|
"mocha": "^9.1.3",
|
|
132
132
|
"pinst": "^2.1.6",
|
|
@@ -221,5 +221,5 @@
|
|
|
221
221
|
"node": ">=7.4",
|
|
222
222
|
"npm": ">=6.0.0"
|
|
223
223
|
},
|
|
224
|
-
"gitHead": "
|
|
224
|
+
"gitHead": "2d7e3646ec834f054f9c2bcb35ae7a5ecb256e0f"
|
|
225
225
|
}
|