Skip to content

Commit b26833e

Browse files
committed
fix:added autofocus to all components that need it
1 parent f26a080 commit b26833e

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

src/lib/components/feedback/feedbackGeneral.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<InputTextarea
1717
required
1818
id="feedback"
19-
autofocus
19+
autofocus={true}
2020
bind:value={$feedbackData.message}
2121
label="Tell us more about your experience"
2222
placeholder="Share your suggestions and feature requests..." />

src/routes/(console)/organization-[organization]/createMember.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
name: string,
2727
error: string,
2828
role: string = isSelfHosted ? 'owner' : 'developer';
29-
emailInput: HTMLInputElement;
29+
emailInput: HTMLInputElement;
3030
3131
async function create() {
3232
try {

src/routes/(console)/project-[region]-[project]/auth/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
</Layout.Stack>
6161
<Layout.Stack direction="row" alignItems="center" justifyContent="flex-end">
6262
<ViewSelector view={View.Table} {columns} hideView />
63-
<Button on:mousedown={() => ($showCreateUser = true)} event="create_user" size="s">
63+
<Button on:click={() => ($showCreateUser = true)} event="create_user" size="s">
6464
<Icon size="s" icon={IconPlus} slot="start" />
6565
<span class="text">Create user</span>
6666
</Button>
@@ -173,7 +173,7 @@
173173
href="https://appwrite.io/docs/references/cloud/server-nodejs/users"
174174
target="user"
175175
allowCreate={$canWriteUsers}
176-
on:mousedown={() => showCreateUser.set(true)} />
176+
on:click={() => showCreateUser.set(true)} />
177177
{/if}
178178
</Container>
179179

src/routes/(console)/project-[region]-[project]/auth/createUser.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</script>
5757

5858
<Modal title="Create user" {error} bind:show={showCreate} onSubmit={create}>
59-
<InputText autofocus id="name" label="Name" placeholder="Enter name" bind:value={name} />
59+
<InputText autofocus={true} id="name" label="Name" placeholder="Enter name" bind:value={name} />
6060
<InputEmail id="email" label="Email" placeholder="Enter email" bind:value={mail} />
6161
<InputPhone id="phone" label="Phone" placeholder="Enter phone" bind:value={phone} />
6262
<InputPassword id="password" label="Password" placeholder="Enter password" bind:value={pass} />

src/routes/(console)/project-[region]-[project]/messaging/create-[type]/(type)/email.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
id="subject"
107107
label="Subject"
108108
required
109+
autofocus={true}
109110
placeholder="Enter subject"
110111
bind:value={subject}>
111112
</InputText>

src/routes/(console)/project-[region]-[project]/messaging/create-[type]/(type)/push.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
id="title"
117117
label="Title"
118118
required
119+
autofocus={true}
119120
placeholder="Enter title"
120121
bind:value={title}>
121122
</InputText>

src/routes/(console)/project-[region]-[project]/messaging/create-[type]/(type)/sms.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
id="message"
9797
label="Message"
9898
required
99+
autofocus={true}
99100
maxlength={900}
100101
placeholder="Type here..."
101102
bind:value={content}>

src/routes/(console)/project-[region]-[project]/storage/+page.svelte

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@
4444
hideColumns={!data.buckets.total}
4545
hideView={!data.buckets.total} />
4646
{#if $canWriteBuckets}
47-
<Button
48-
on:mousedown={() => ($showCreateBucket = true)}
49-
event="create_bucket"
50-
size="s">
47+
<Button on:click={() => ($showCreateBucket = true)} event="create_bucket" size="s">
5148
<Icon icon={IconPlus} slot="start" size="s" />
5249
Create bucket
5350
</Button>

src/routes/(console)/project-[region]-[project]/storage/create.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
label="Name"
5656
placeholder="New bucket"
5757
bind:value={name}
58-
autofocus
58+
autofocus={true}
5959
required />
6060

6161
{#if !showCustomId}

0 commit comments

Comments
 (0)