Skip to content

Commit

Permalink
Prevent page reload after clicking 'Reconnect' (#38536)
Browse files Browse the repository at this point in the history
  • Loading branch information
gzdunek authored Feb 22, 2024
1 parent 056e2ec commit 8e05cd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/packages/teleterm/src/ui/components/OfflineGateway.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ export function OfflineGateway(props: {
)}
<Flex
as="form"
onSubmit={() => {
onSubmit={e => {
e.preventDefault();
setReconnectRequested(true);
props.reconnect(props.gatewayPort.isSupported ? port : undefined);
}}
Expand Down

0 comments on commit 8e05cd1

Please sign in to comment.