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

pull/3515/head^2
Brandon Cohen 1 year ago committed by GitHub
parent d0836ce0ef
commit a761b7dd35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -437,6 +437,7 @@ export const WatchProviderSelector = ({
{otherProviders.length > 0 && ( {otherProviders.length > 0 && (
<button <button
className="relative top-4 flex items-center justify-center space-x-2 text-sm text-gray-400 transition hover:text-gray-200" className="relative top-4 flex items-center justify-center space-x-2 text-sm text-gray-400 transition hover:text-gray-200"
type="button"
onClick={() => setShowMore(!showMore)} onClick={() => setShowMore(!showMore)}
> >
<div className="h-0.5 flex-1 bg-gray-600" /> <div className="h-0.5 flex-1 bg-gray-600" />

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

Loading…
Cancel
Save