Clicking label does not toggle switch sometimes #6524
Labels
0 - new
New issues that need assignment.
a11y
Issues related to Accessibility fixes or improvements.
ArcGIS Field Apps
Issues logged by ArcGIS Field Apps team members.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
estimate - 8
Requires input from team, consider smaller steps.
has workaround
Issues have a workaround available in the meantime.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
p - low
Issue is non core or affecting less that 10% of people using the library
Milestone
Actual Behavior
If a label and switch, paired via the
for
attribute, are rendered dynamically, clicking the label immediately after it renders does not toggle the switch.Waiting a few seconds after rendering the label, for the first time, does seem to toggle the switch correctly. However subsequent re-rendering of the elements seems to sever the connection completely.
Expected Behavior
Clicking the label always toggles the switch as long as it's not in a disabled state.
Reproduction Sample
https://ember-twiddle.com/d384379a8ad315d95edc61186a54abe9
Reproduction Steps
Reproduction Version
1.0.7
Relevant Info
Possibly related to, or an extension of, #3761.
Regression?
No response
Priority impact
p3 - not time sensitive
Impact
A workaround is to specify the label's
for
and the input'sid
attributes statically rather than dynamically. However, this only works well for one-off components where there's little risk of specifying duplicate identifiers.Esri team
ArcGIS Field Apps
The text was updated successfully, but these errors were encountered: