This commit is contained in:
Pavel Laptev 2023-12-07 17:24:56 +01:00 committed by GitButler
parent 39d4b5f861
commit 6dfc9203fa

View File

@ -1,7 +1,6 @@
<script lang="ts"> <script lang="ts">
export let name: string; export let name: string;
let activeInput = false; let activeInput = false;
let focusLabel = false;
let label: HTMLDivElement; let label: HTMLDivElement;
let input: HTMLInputElement; let input: HTMLInputElement;
@ -11,7 +10,6 @@
} }
function selectNameLabel() { function selectNameLabel() {
focusLabel = true;
setTimeout(() => label.focus(), 0); setTimeout(() => label.focus(), 0);
} }
</script> </script>
@ -45,7 +43,6 @@
class="branch-name text-base-13 truncate" class="branch-name text-base-13 truncate"
on:keydown={activate} on:keydown={activate}
on:click={activate} on:click={activate}
on:blur={() => (focusLabel = false)}
> >
{name} {name}
</div> </div>