Skip to content

Commit

Permalink
DEV: rely on modal autofocus (#82)
Browse files Browse the repository at this point in the history
Every DModal has an automatic behavior where it will attempt to focus the first focusable element, the `autofocus={{true}}` is unnecessary and would also print a warning in the browser console as each behavior fight with each other.
  • Loading branch information
jjaffeux authored Jan 8, 2025
1 parent efafc15 commit cbc39e4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions javascripts/discourse/components/modal/gif.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@
>
<:body>
<div class="gif-input">
<Input
{{on "input" this.refresh}}
@type="text"
name="query"
autofocus={{true}}
/>
<Input {{on "input" this.refresh}} @type="text" name="query" />

{{#if this.loading}}
{{loading-spinner size="small"}}
Expand Down

0 comments on commit cbc39e4

Please sign in to comment.