From a44f55d5ecd2d007278a69c7ae8e2bd3b5ad32d8 Mon Sep 17 00:00:00 2001 From: Melloware Date: Mon, 22 Apr 2024 11:34:56 -0400 Subject: [PATCH] Fix #6442: TabView round scrollLeft like PrimeVue --- components/lib/tabview/TabView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/tabview/TabView.js b/components/lib/tabview/TabView.js index f60733419d..e2433bbded 100644 --- a/components/lib/tabview/TabView.js +++ b/components/lib/tabview/TabView.js @@ -260,7 +260,7 @@ export const TabView = React.forwardRef((inProps, ref) => { const width = DomHandler.getWidth(contentRef.current); setBackwardIsDisabledState(scrollLeft === 0); - setForwardIsDisabledState(scrollLeft === scrollWidth - width); + setForwardIsDisabledState(parseInt(scrollLeft) === scrollWidth - width); }; const onScroll = (event) => {