@apexcura/ui-components 0.0.13-Beta81 → 0.0.13-Beta82
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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -892,9 +892,9 @@ var import_react27 = __toESM(require("react"));
|
|
|
892
892
|
var import_antd20 = require("antd");
|
|
893
893
|
var TabsElement = (props) => {
|
|
894
894
|
console.log(props);
|
|
895
|
-
const handleChange = (
|
|
895
|
+
const handleChange = (label) => {
|
|
896
896
|
if (props.onChange) {
|
|
897
|
-
props.onChange(props.options?.find((eachOption) => eachOption.
|
|
897
|
+
props.onChange(props.options?.find((eachOption) => eachOption.label === label));
|
|
898
898
|
}
|
|
899
899
|
};
|
|
900
900
|
return /* @__PURE__ */ import_react27.default.createElement(
|
package/dist/index.mjs
CHANGED
|
@@ -835,9 +835,9 @@ import React27 from "react";
|
|
|
835
835
|
import { Tabs } from "antd";
|
|
836
836
|
var TabsElement = (props) => {
|
|
837
837
|
console.log(props);
|
|
838
|
-
const handleChange = (
|
|
838
|
+
const handleChange = (label) => {
|
|
839
839
|
if (props.onChange) {
|
|
840
|
-
props.onChange(props.options?.find((eachOption) => eachOption.
|
|
840
|
+
props.onChange(props.options?.find((eachOption) => eachOption.label === label));
|
|
841
841
|
}
|
|
842
842
|
};
|
|
843
843
|
return /* @__PURE__ */ React27.createElement(
|