Skip to content

Commit

Permalink
Fix primefaces#6442: TabView round scrollLeft like PrimeVue
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Apr 22, 2024
1 parent 6ef3a90 commit a44f55d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/tabview/TabView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit a44f55d

Please sign in to comment.