# Adds support for label and for attribute on select-kit

**URL:** https://meta.discourse.org/t/adds-support-for-label-and-for-attribute-on-select-kit/90184
**Category:** Feature
**Created:** [June 18, 2018, 6:27pm UTC](https://meta.discourse.org/t/adds-support-for-label-and-for-attribute-on-select-kit/90184 "2018-06-18T18:27:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![featheredtoast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/featheredtoast/32/116994_2.png) [@featheredtoast](https://meta.discourse.org/u/featheredtoast)
#### Post date: [June 18, 2018, 6:27pm UTC](https://meta.discourse.org/t/adds-support-for-label-and-for-attribute-on-select-kit/90184/1 "2018-06-18T18:27:50Z")

</div>

Select-kit does not currently seem to get associated with a label’s `for` attribute - should this be the case? It would allow a user to interact with an input by clicking the label. For context, see:

> [@Custom fields labels have no target attribute on the registration window](https://meta.discourse.org/t/custom-fields-labels-have-no-target-attribute-on-the-registration-window/90052/4):
>
> Custom field inputs and checkboxes will now correctly react when their label is clicked melon I noticed that select-kit doesn’t respond to a label’s for attribute yet, so this isn’t happening for custom select fields.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [February 8, 2019, 11:48am UTC](https://meta.discourse.org/t/adds-support-for-label-and-for-attribute-on-select-kit/90184/3 "2019-02-08T11:48:06Z")

</div>

Will be fixed by:

[https://github.com/discourse/discourse/pull/6991](https://github.com/discourse/discourse/pull/6991)

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [February 9, 2019, 5:00pm UTC](https://meta.discourse.org/t/adds-support-for-label-and-for-attribute-on-select-kit/90184/4 "2019-02-09T17:00:10Z")

</div>

This topic was automatically closed after 29 hours. New replies are no longer allowed.
