From cf07579a6bcc2c4729ac881d9c286df12e7fc97a Mon Sep 17 00:00:00 2001 From: Tom Byers Date: Wed, 3 Apr 2019 14:23:07 +0100 Subject: [PATCH] Correct name of forceFocus data attribute Data attributes need to be '-' separated strings in the HTML to appear as camelCase keys in the `.dataset` (`.data()` in jQuery) property. This corrects the assumption that the camelCasing would carry through from the HTML. More info: https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes --- app/templates/views/send-test.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/views/send-test.html b/app/templates/views/send-test.html index 967f72a08..8764b5479 100644 --- a/app/templates/views/send-test.html +++ b/app/templates/views/send-test.html @@ -17,7 +17,7 @@ {% call form_wrapper( class='js-stick-at-top-when-scrolling send-one-off-form' if template.template_type != 'sms' else 'send-one-off-form', module="autofocus", - data_kwargs={'forceFocus': True} + data_kwargs={'force-focus': True} ) %}