8000 [BUG] Cannot clear active of RadiGroup · Issue #11203 · bokeh/bokeh · GitHub
[go: up one dir, main page]

Skip to content

[BUG] Cannot clear active of RadiGroup #11203

@maeglin89273

Description

@maeglin89273

Bug Description

Bokeh version 2.3.1
In the documentation, RadioGroup's active state is nullable. However, if I set active to None, the error occurs in the browser and the state remains. This still works in version 2.2.1.

Example Code

# test_radio_group.py
from bokeh.io import curdoc
from bokeh.models import Button, RadioGroup

clear_btn = Button(label='clear')
def clear_active():
    radio_btn_group.active = None

clear_btn.on_click(clear_active)
radio_btn_group = RadioGroup(labels=['a', 'b', 'c'], active=1)
curdoc().add_root(radio_btn_group)
curdoc().add_root(clear_btn)

run:
bokeh serve test_radio_group.py

Screenshots

Documentation

Screenshot from 2021-04-26 12-02-55

Browser Console Error

Screenshot from 2021-04-26 11-48-04

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0