Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

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

Open
@ppwfx

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?

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