From adc19c9378826b97fafe817e500c0d1c80f4cb03 Mon Sep 17 00:00:00 2001 From: NEMYSESx <111594052+NEMYSESx@users.noreply.github.com> Date: Sat, 29 Jun 2024 06:45:20 +0530 Subject: [PATCH] Fix tab navigation issue in Tab component --- package-lock.json | 21 +++++++++++++++++++++ playground/components/Tab.tsx | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index c2851470..d8b3674f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27354,6 +27354,27 @@ "webpack-cli": "5.1.4" } }, + "web-component/node_modules/@asyncapi/react-component": { + "version": "1.4.10", + "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.4.10.tgz", + "integrity": "sha512-ejANS06yj1ZM4YDtsRi0g7h3EEJLGusewjzeugK+tGntNAKVZRvTPUXhbSDMhTARHuZXhUGLlITIno7N1aXapw==", + "license": "Apache-2.0", + "dependencies": { + "@asyncapi/avro-schema-parser": "^3.0.22", + "@asyncapi/openapi-schema-parser": "^3.0.22", + "@asyncapi/parser": "^3.0.14", + "@asyncapi/protobuf-schema-parser": "^3.2.12", + "highlight.js": "^10.7.2", + "isomorphic-dompurify": "^0.13.0", + "marked": "^4.0.14", + "openapi-sampler": "^1.2.1", + "use-resize-observer": "^8.0.0" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, "web-component/node_modules/use-resize-observer": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/use-resize-observer/-/use-resize-observer-8.0.0.tgz", diff --git a/playground/components/Tab.tsx b/playground/components/Tab.tsx index 0a46bd41..2a5eb5ff 100644 --- a/playground/components/Tab.tsx +++ b/playground/components/Tab.tsx @@ -19,7 +19,7 @@ class Tab extends Component { { event.preventDefault(); - if (parentCallback && tabIndex) { + if (parentCallback && tabIndex !== undefined) { parentCallback(tabIndex); } }}