File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,7 @@ export function ReactQueryDevtools({
221221 />
222222 { isResolvedOpen ? (
223223 < Button
224+ type = "button"
224225 { ...otherCloseButtonProps }
225226 onClick = { ( ) => {
226227 setIsOpen ( false )
@@ -255,6 +256,7 @@ export function ReactQueryDevtools({
255256 </ ThemeProvider >
256257 { ! isResolvedOpen ? (
257258 < button
259+ type = "button"
258260 { ...otherToggleButtonProps }
259261 aria-label = "Open React Query Devtools"
260262 onClick = { ( ) => {
@@ -537,6 +539,7 @@ export const ReactQueryDevtoolsPanel = React.forwardRef(
537539 ) ) }
538540 </ Select >
539541 < Button
542+ type = "button"
540543 onClick = { ( ) => setSortDesc ( old => ! old ) }
541544 style = { {
542545 padding : '.3rem .4rem' ,
@@ -702,6 +705,7 @@ export const ReactQueryDevtoolsPanel = React.forwardRef(
702705 } }
703706 >
704707 < Button
708+ type = "button"
705709 onClick = { ( ) => activeQuery . fetch ( ) }
706710 disabled = { activeQuery . state . isFetching }
707711 style = { {
@@ -711,6 +715,7 @@ export const ReactQueryDevtoolsPanel = React.forwardRef(
711715 Refetch
712716 </ Button > { ' ' }
713717 < Button
718+ type = "button"
714719 onClick = { ( ) => queryClient . invalidateQueries ( activeQuery ) }
715720 style = { {
716721 background : theme . warning ,
@@ -720,6 +725,7 @@ export const ReactQueryDevtoolsPanel = React.forwardRef(
720725 Invalidate
721726 </ Button > { ' ' }
722727 < Button
728+ type = "button"
723729 onClick = { ( ) => queryClient . resetQueries ( activeQuery ) }
724730 style = { {
725731 background : theme . gray ,
@@ -728,6 +734,7 @@ export const ReactQueryDevtoolsPanel = React.forwardRef(
728734 Reset
729735 </ Button > { ' ' }
730736 < Button
737+ type = "button"
731738 onClick = { ( ) => queryClient . removeQueries ( activeQuery ) }
732739 style = { {
733740 background : theme . danger ,
You can’t perform that action at this time.
0 commit comments