Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

RadioItems does not put option.value into the labels key attribute #161

Description

@ppwfx

dash-core-components==0.18.1

According to this, the label element should have a key attribute containing option.value

https://github.com/plotly/dash-core-components/blob/master/src/components/RadioItems.react.js#L42

This is how it's actually rendered for me in Chrome and FF:

<div id="radio_y">
   <label class="yo"> <!-- actual -->
      <input type="radio" class="" value="on">
         <!-- react-text: 7005 -->
         mean_fit_time
         <!-- /react-text -->
   </label>
</div>

That's what I`d have expected:

<div id="radio_y">
   <label class="yo" key="mean_fit_time"> <!-- expected -->
      <input type="radio" class="" value="on">
         <!-- react-text: 7005 -->
         mean_fit_time
         <!-- /react-text -->
   </label>
</div>

Do you have an idea what could cause that?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions