Skip to content

Commit

Permalink
prevent page from reloading (#494)
Browse files Browse the repository at this point in the history
* remove dead imports

* prevent the page from reloading
  • Loading branch information
vilterp committed Jun 23, 2024
1 parent c410baf commit 99c563b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions apps/actors/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import { useEffectfulReducer } from "../../uiCommon/generic/hooks";
import { CollapsibleWithHeading } from "../../uiCommon/generic/collapsible";
import { MultiClient } from "./ui/multiClient";
import { lastItem } from "../../util/util";
import { SequenceDiagram } from "../../uiCommon/visualizations/sequence";
import { Term, Statement, rec, varr } from "../../core/types";

const initialSystemsState = initialState(SYSTEMS);

Expand Down
7 changes: 6 additions & 1 deletion apps/actors/ui/timeTravelSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,12 @@ function ExploreForm(props: {
const [steps, setSteps] = React.useState(DEFAULT_STEP_LIMIT);

return (
<form onSubmit={() => props.onExplore(steps)}>
<form
onSubmit={(evt) => {
evt.preventDefault();
props.onExplore(steps);
}}
>
<button type="submit" disabled={props.disabled}>
Explore
</button>{" "}
Expand Down

0 comments on commit 99c563b

Please sign in to comment.