From 7a1cefce78a4554e846fbcff61ba3392d93276b3 Mon Sep 17 00:00:00 2001 From: Jeff Wong Date: Mon, 18 Jun 2018 11:11:44 -0700 Subject: [PATCH] Fix: let user fields respond when their labels are clicked --- .../discourse/templates/components/user-fields/confirm.hbs | 4 ++-- .../discourse/templates/components/user-fields/dropdown.hbs | 4 ++-- .../discourse/templates/components/user-fields/text.hbs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/components/user-fields/confirm.hbs b/app/assets/javascripts/discourse/templates/components/user-fields/confirm.hbs index 2158ccb1efc..6b8726d4e4a 100644 --- a/app/assets/javascripts/discourse/templates/components/user-fields/confirm.hbs +++ b/app/assets/javascripts/discourse/templates/components/user-fields/confirm.hbs @@ -1,4 +1,4 @@ - +
- +
diff --git a/app/assets/javascripts/discourse/templates/components/user-fields/dropdown.hbs b/app/assets/javascripts/discourse/templates/components/user-fields/dropdown.hbs index 88528e71112..24e8ff3081b 100644 --- a/app/assets/javascripts/discourse/templates/components/user-fields/dropdown.hbs +++ b/app/assets/javascripts/discourse/templates/components/user-fields/dropdown.hbs @@ -1,6 +1,6 @@ - +
- {{combo-box content=field.options value=value none=noneLabel}} + {{combo-box id=(concat 'user-' elementId) content=field.options value=value none=noneLabel}} {{#if field.required}}*{{/if}}
{{{field.description}}}
diff --git a/app/assets/javascripts/discourse/templates/components/user-fields/text.hbs b/app/assets/javascripts/discourse/templates/components/user-fields/text.hbs index 78621b55de8..1c7d9d95b51 100644 --- a/app/assets/javascripts/discourse/templates/components/user-fields/text.hbs +++ b/app/assets/javascripts/discourse/templates/components/user-fields/text.hbs @@ -1,6 +1,6 @@ - +
- {{input value=value maxlength=site.user_field_max_length}} + {{input id=(concat 'user-' elementId) value=value maxlength=site.user_field_max_length}} {{#if field.required}}*{{/if}}
{{{field.description}}}