From b9b080344cc75b69656aeea5a82ff1b04f802004 Mon Sep 17 00:00:00 2001 From: Constey Date: Tue, 3 Jan 2023 16:08:28 +0100 Subject: [PATCH] Update Tabs.tsx fixed issue https://github.com/pnp/sp-dev-fx-webparts/issues/3292 to point back to tab 1 --- .../webparts/tabAccordion/components/utilities/Tab/Tabs.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/react-accordion-with-richtext/src/webparts/tabAccordion/components/utilities/Tab/Tabs.tsx b/samples/react-accordion-with-richtext/src/webparts/tabAccordion/components/utilities/Tab/Tabs.tsx index fe0717d51..059ef0092 100644 --- a/samples/react-accordion-with-richtext/src/webparts/tabAccordion/components/utilities/Tab/Tabs.tsx +++ b/samples/react-accordion-with-richtext/src/webparts/tabAccordion/components/utilities/Tab/Tabs.tsx @@ -37,9 +37,10 @@ export default class Tabs extends React.Component { if(evt.target.id === '') { + /* see issue https://github.com/pnp/sp-dev-fx-webparts/issues/3292 evt.target.children[0].children[0].focus(); evt.target.children[0].children[0].click(); - + */ } else @@ -162,4 +163,4 @@ export default class Tabs extends React.Component { return
{children}
; } -} \ No newline at end of file +}