mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-29 12:33:49 +03:00
Fix
This commit is contained in:
parent
39d4b5f861
commit
6dfc9203fa
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user