linear-react-components-ui 1.1.21 → 1.1.22-beta.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.
|
@@ -162,7 +162,10 @@ const DefaultButton = _ref => {
|
|
|
162
162
|
},
|
|
163
163
|
tabIndex: isDisabled ? -1 : tabIndex
|
|
164
164
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
165
|
-
className: "button-container"
|
|
165
|
+
className: "button-container",
|
|
166
|
+
style: {
|
|
167
|
+
pointerEvents: 'none'
|
|
168
|
+
}
|
|
166
169
|
}, !dropdown && getIcon(), content || label && /*#__PURE__*/_react.default.createElement("div", {
|
|
167
170
|
className: "button-content"
|
|
168
171
|
}, content, label || ''), dropdown && getIcon()), isLoading && /*#__PURE__*/_react.default.createElement("div", {
|
package/lib/drawer/Drawer.js
CHANGED
|
@@ -93,14 +93,16 @@ const BaseDrawer = _ref => {
|
|
|
93
93
|
};
|
|
94
94
|
(0, _react.useEffect)(() => {
|
|
95
95
|
let body;
|
|
96
|
-
const
|
|
96
|
+
const randomId = Math.round(+new Date() / 1000);
|
|
97
97
|
if (targetId === undefined) {
|
|
98
98
|
body = document.getElementsByTagName('body')[0];
|
|
99
99
|
} else {
|
|
100
100
|
body = document.getElementById(targetId);
|
|
101
101
|
}
|
|
102
|
-
if (body) setDrawerComponent(body,
|
|
103
|
-
if (overlay &&
|
|
102
|
+
if (body) setDrawerComponent(body, randomId);
|
|
103
|
+
if (overlay && body) {
|
|
104
|
+
setDrawerOverlay(body);
|
|
105
|
+
}
|
|
104
106
|
return () => {
|
|
105
107
|
const drawerOverlay = document.getElementsByClassName('drawer-overlay')[0];
|
|
106
108
|
if (closeOnEsc) document.body.removeEventListener('keydown', closeDrawerOnEsc);
|
|
@@ -110,7 +112,7 @@ const BaseDrawer = _ref => {
|
|
|
110
112
|
drawerComponentTarget.removeChild(drawerComponentEl.current);
|
|
111
113
|
}
|
|
112
114
|
} else if (drawerComponentEl.current) document.body.removeChild(drawerComponentEl.current);
|
|
113
|
-
if (drawerOverlay &&
|
|
115
|
+
if (drawerOverlay && body) body.removeChild(drawerOverlay);
|
|
114
116
|
};
|
|
115
117
|
}, []);
|
|
116
118
|
(0, _react.useEffect)(() => {
|