Skip to content

Commit

Permalink
preventing to send form onClick left/right arrows in SchemaTabs compo…
Browse files Browse the repository at this point in the history
…nent (#796)
  • Loading branch information
stakoov authored and sserrata committed May 6, 2024
1 parent 7a4e93f commit f621777
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,14 @@ function TabList({
};
}, []);

const handleRightClick = () => {
tabItemListContainerRef.current!.scrollLeft += 90;
const handleRightClick = (e) => {
e.preventDefault();
tabItemListContainerRef.current.scrollLeft += 90;
};

const handleLeftClick = () => {
tabItemListContainerRef.current!.scrollLeft -= 90;
const handleLeftClick = (e) => {
e.preventDefault();
tabItemListContainerRef.current.scrollLeft -= 90;
};

return (
Expand Down

0 comments on commit f621777

Please sign in to comment.