Skip to content

Commit

Permalink
Fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn committed Jul 8, 2024
1 parent 13c6ba1 commit 6d5888e
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,7 @@ export function PointPanelWithHitPoints({
}
};

const toggleShouldLog = (event?: MouseEvent<HTMLElement>) => {
if (event) {
event.preventDefault();
event.stopPropagation();
}

const toggleShouldLog = () => {
editPointBehavior(
key,
{
Expand Down Expand Up @@ -515,7 +510,12 @@ export function PointPanelWithHitPoints({
className={styles.ButtonWithIcon}
data-test-name="PointPanel-DisabledButton"
disabled={isPending}
onClick={toggleShouldLog}
onClick={event => {
event.preventDefault();
event.stopPropagation();

toggleShouldLog();
}}
>
<Icon className={styles.DisabledIcon} data-disabled type="toggle-off" />
</button>
Expand Down

0 comments on commit 6d5888e

Please sign in to comment.