@oliasoft-open-source/react-ui-library 3.10.2 → 3.10.3
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 +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16133,11 +16133,15 @@ const Drawer = ({
|
|
|
16133
16133
|
const currentWidth = open ? openWidth : tabs2 ? TABS_WIDTH : closedWidth;
|
|
16134
16134
|
const handleTabClick = (index2) => {
|
|
16135
16135
|
if (activeTab === index2 && open) {
|
|
16136
|
+
if (onClose) {
|
|
16137
|
+
onClose(tabs2[index2]);
|
|
16138
|
+
}
|
|
16136
16139
|
setOpen(false);
|
|
16137
|
-
onClose(index2);
|
|
16138
16140
|
} else if (!open) {
|
|
16141
|
+
if (onOpen) {
|
|
16142
|
+
onOpen(tabs2[index2]);
|
|
16143
|
+
}
|
|
16139
16144
|
setOpen(true);
|
|
16140
|
-
onOpen(tabs2[index2]);
|
|
16141
16145
|
if (onResize && width < MIN_OPEN_WIDTH) {
|
|
16142
16146
|
onResize(MIN_OPEN_WIDTH);
|
|
16143
16147
|
}
|