Removed autofocus from inline feedback forms

refs https://github.com/TryGhost/Team/issues/3231
This commit is contained in:
Djordje Vlaisavljevic 2023-05-17 13:58:13 +01:00
parent f0d0e8eb7a
commit 933b4bb4cb
4 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,7 @@
<FeedbackLexical::Textarea
@feedbackMessage={{this.feedbackMessage}}
@updateFeedbackMessage={{this.updateFeedbackMessage}}
@shouldFocus={{true}}
/>
</div>

View File

@ -2,6 +2,7 @@
@feedbackMessage={{this.feedbackMessage}}
@updateFeedbackMessage={{this.updateFeedbackMessage}}
@label="Have any issues? Feedback? Let us know below!"
@shouldFocus={{false}}
/>
<FeedbackLexical::SendButton

View File

@ -5,6 +5,7 @@
@feedbackMessage={{this.feedbackMessage}}
@updateFeedbackMessage={{this.updateFeedbackMessage}}
@label="Feedback"
@shouldFocus={{false}}
/>
<FeedbackLexical::SendButton
@feedbackMessage={{this.feedbackMessage}}

View File

@ -8,7 +8,7 @@
@name="feedback-lexical"
@value={{@feedbackMessage}}
@placeholder="I've noticed that..."
@shouldFocus={{true}}
@shouldFocus={{@shouldFocus}}
data-test-lexical-feedback-textarea
{{on "input" @updateFeedbackMessage}}
/>