U4-7648 - Ensure that property label does set focus on input where possible

Created by Bjarne Fyrstenborg 05 Jan 2016, 20:57:11 Updated by Bjarne Fyrstenborg 07 Mar 2016, 10:47:53

Relates to: U4-8126

I think we should ensure that property label set focus on input where possible.

E.g. textbox has for attribute on label and a unique id attribute (matching the value of "for"-attribute) on the textbox.

But some properties don't set the focus, because of missing id's and no unique value for "for"-attribute:

  • Decimal (7.4.0)
  • Numeric
  • Date Picker

Maybe other datatypes as well.

The following does set focus:

  • Textstring
  • Textarea
  • Email Address
  • Checkbox


Bjarne Fyrstenborg 07 Jan 2016, 00:18:34

PR: https://github.com/umbraco/Umbraco-CMS/pull/1000

Nicholas Westby 08 Jan 2016, 21:21:10

@Bjarne.Fyrstenborg FYI, I added a note to that pull request in regards to some concerns around ID's not being unique enough: https://github.com/umbraco/Umbraco-CMS/pull/1000#issuecomment-170126523

Priority: Normal

Type: Bug

State: Fixed




Backwards Compatible: True

Fix Submitted: Pull request

Affected versions: 7.4.0, 7.3.4

Due in version: 7.3.5

Sprint: Sprint 6

Story Points: