@micromag/core 0.4.19 → 0.4.21
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/es/components.js +1 -1
- package/lib/components.js +1 -1
- package/package.json +2 -2
package/es/components.js
CHANGED
|
@@ -986,7 +986,7 @@ function Dropdown(_ref) {
|
|
|
986
986
|
enabled = _useState2[0],
|
|
987
987
|
setEnabled = _useState2[1];
|
|
988
988
|
var onDocumentClick = useCallback(function (e) {
|
|
989
|
-
if (refContainer.current && !refContainer.current.contains(e.currentTarget) && onClickOutside !== null) {
|
|
989
|
+
if (refContainer.current && !refContainer.current.contains(e.currentTarget) && !refContainer.current.contains(e.target) && onClickOutside !== null) {
|
|
990
990
|
onClickOutside(e);
|
|
991
991
|
}
|
|
992
992
|
}, [refContainer.current, onClickOutside]);
|
package/lib/components.js
CHANGED
|
@@ -988,7 +988,7 @@ function Dropdown(_ref) {
|
|
|
988
988
|
enabled = _useState2[0],
|
|
989
989
|
setEnabled = _useState2[1];
|
|
990
990
|
var onDocumentClick = React.useCallback(function (e) {
|
|
991
|
-
if (refContainer.current && !refContainer.current.contains(e.currentTarget) && onClickOutside !== null) {
|
|
991
|
+
if (refContainer.current && !refContainer.current.contains(e.currentTarget) && !refContainer.current.contains(e.target) && onClickOutside !== null) {
|
|
992
992
|
onClickOutside(e);
|
|
993
993
|
}
|
|
994
994
|
}, [refContainer.current, onClickOutside]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.21",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -161,6 +161,6 @@
|
|
|
161
161
|
"access": "public",
|
|
162
162
|
"registry": "https://registry.npmjs.org/"
|
|
163
163
|
},
|
|
164
|
-
"gitHead": "
|
|
164
|
+
"gitHead": "34dedbdd988f27c395b838b50dfcd0e48bfa16ee",
|
|
165
165
|
"types": "es/index.d.ts"
|
|
166
166
|
}
|