Skip to content

Commit

Permalink
Double-clicking on the header was removed, this caused modal errors w…
Browse files Browse the repository at this point in the history
…hen closing
  • Loading branch information
PavelLaptev committed Feb 15, 2024
1 parent 66a1a17 commit 8ae9963
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions gitbutler-ui/src/lib/components/BranchHeader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@
</div>
</div>
{:else}
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="header__wrapper" on:dblclick={foldLine}>
<div class="header__wrapper">
<div class="header card" class:isUnapplied>
<div class="header__info">
<div class="header__label">
Expand Down
6 changes: 0 additions & 6 deletions gitbutler-ui/src/lib/components/Overlay.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script lang="ts">
import { onMount } from 'svelte';
import OutClick from 'svelte-outclick';
let dialog: HTMLDialogElement;
Expand All @@ -22,11 +21,6 @@
dialog.close();
open = false;
}
// Append the dialog to the body to prevent overlapping with other elements' actions.
onMount(() => {
document.body.appendChild(dialog);
});
</script>

<dialog
Expand Down

0 comments on commit 8ae9963

Please sign in to comment.