feat: first collapsible always open, disable autocomplete

This commit is contained in:
Arman
2023-01-27 11:27:22 +01:00
parent 6b746de707
commit f6b483a1e8
3 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
<script lang="ts">
export let withIndentation = false;
export let open = false;
</script>
<li class="collapsible-item">
<details class="collapsible-wrapper">
<details class="collapsible-wrapper" {open}>
<summary class="collapsible-button">
<slot name="beforetitle" />
<div>
@@ -42,7 +42,8 @@
placeholder="Enter key"
bind:value={pair.key}
required
autofocus />
autofocus
autocomplete={false} />
<InputSecret id="value" label="Value" placeholder="Enter value" bind:value={pair.value} />
</FormList>
<svelte:fragment slot="footer">
@@ -143,8 +143,8 @@
>.
</p>
<Collapsible>
{#each ['Unix', 'CMD', 'PowerShell'] as category}
<CollapsibleItem>
{#each ['Unix', 'CMD', 'PowerShell'] as category, i}
<CollapsibleItem open={i === 0}>
<svelte:fragment slot="title">{category}</svelte:fragment>
<Code
withLineNumbers