fix: resolved issue with create slider causing incorrect form submission (#3514)

This commit is contained in:
Brandon Cohen
2023-06-21 13:18:50 -04:00
committed by GitHub
parent d0836ce0ef
commit a761b7dd35
2 changed files with 3 additions and 0 deletions

View File

@@ -156,6 +156,7 @@ const Slider = ({
}`}
onClick={() => slide(Direction.LEFT)}
disabled={scrollPos.isStart}
type="button"
>
<ChevronLeftIcon className="h-6 w-6" />
</button>
@@ -165,6 +166,7 @@ const Slider = ({
}`}
onClick={() => slide(Direction.RIGHT)}
disabled={scrollPos.isEnd}
type="button"
>
<ChevronRightIcon className="h-6 w-6" />
</button>