mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:44:49 +08:00
FIX: Buggy jump-to-post on Firefox (#16153)
This commit is contained in:
parent
8d96761a4f
commit
3a817d2377
|
@ -158,6 +158,7 @@ export default Component.extend({
|
|||
}
|
||||
if (event.key === "Enter" && this.triggerClickOnEnter(event)) {
|
||||
this.element?.querySelector(".modal-footer .btn-primary")?.click();
|
||||
event.preventDefault();
|
||||
}
|
||||
if (event.key === "Tab") {
|
||||
this._trapTab(event);
|
||||
|
|
|
@ -3,7 +3,13 @@
|
|||
<div class="jump-to-post-form">
|
||||
<div class="jump-to-post-control">
|
||||
<span class="index">#</span>
|
||||
{{input id="post-jump" type="number" value=postNumber insert-newline=(action "jump")}}
|
||||
{{input
|
||||
id="post-jump"
|
||||
type="number"
|
||||
value=postNumber
|
||||
insert-newline=(action "jump")
|
||||
autofocus="true"
|
||||
}}
|
||||
<span class="input-hint-text post-number">
|
||||
{{i18n "topic.progress.jump_prompt_of" count=filteredPostsCount}}
|
||||
</span>
|
||||
|
|
Loading…
Reference in New Issue
Block a user