Radio Item functionality changed in most recent dash version?

I think there has been a change in the functionality of radio items in a recent dash update.

originally the following code worked fine

dcc.RadioItems(
    id = "Comb_Hist",
    options=[
        {"label": "Separate Histograms", "value": False},
        {"label": "Combine Histograms", "value": True},
    ],
    value=False,
    className = "RadioItems--horizontal"
),

However in the latest version of dash I get the following error code:

Invalid argument `options[0].value` passed into RadioItems with ID "Comb_Hist".

As well as:

dcc.RadioItems(
    id = "Type_Reg",
    options=[
        {"label": "Linear", "value": 1},
        {"label": "Quadratic", "value": 2},
    ],
    value=1,
    className = "RadioItems--horizontal"
),

Which generates error:

Invalid argument `value` passed into RadioItems with ID "Type_Reg".
Expected `string`.
Was supplied type `number`.
Value provided: 1

However my radio item that has a string as its value works fine. Has this been changed in a recent update, that radio items now only accepts strings.

Thank for the Help

5 Likes