Skip to content

Commit 0533aa1

Browse files
committed
fix: autofocus
1 parent a7bdb00 commit 0533aa1

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

crates/rostra-web-ui/src/routes/new_post.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ impl UiState {
363363
"@keydown"="handleKeydown($event)"
364364
autocomplete="off"
365365
autofocus
366+
x-autofocus
366367
disabled[ro.to_disabled()]
367368
"x-on:keyup.enter.ctrl"="$el.form.requestSubmit()"
368369
{}

crates/rostra-web-ui/src/routes/post.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,6 @@ impl UiState {
512512
)
513513
.disabled(ro.to_disabled())
514514
.hidden_inputs(html! { input type="hidden" name="reply_to" value=(ext_event_id) {} })
515-
.autofocus(true)
516515
.call())
517516
}
518517
}

0 commit comments

Comments
 (0)