From 7277f85358b8c26642729999cf00189e29092bc3 Mon Sep 17 00:00:00 2001 From: Michael Chadwick Date: Wed, 15 May 2024 13:40:55 -0700 Subject: [PATCH] created autofocus modifier and applied to message form --- app/components/new-message-input.hbs | 2 +- app/modifiers/autofocus.js | 3 +++ tests/integration/modifiers/autofocus-test.js | 15 +++++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 app/modifiers/autofocus.js create mode 100644 tests/integration/modifiers/autofocus-test.js diff --git a/app/components/new-message-input.hbs b/app/components/new-message-input.hbs index 53ce932..36d6f11 100644 --- a/app/components/new-message-input.hbs +++ b/app/components/new-message-input.hbs @@ -5,7 +5,7 @@ @value={{this.message}} id="new-message-text" placeholder="Type message here and hit enter" - autofocus="autofocus" + {{autofocus}} />