Updating the basemap of an ipyleaflet map in Binder

I have been working on an offline Jupyter Notebook containing an ipyleaflet map. I have an interactive dropdown where a used can select a basemap for the map. This works in a normal Jupyter Notebook, but does not in the Binder image: The update code is:

b_change_basemap = Button(description='Change basemap', disabled=False, button_style='')
def change_basemap_button_clicked(b):
    if options_basemap.value == "Toner":
        m.add_layer(basemaps.Stamen.Toner)
    elif options_basemap.value == "WorldStreetMap":
        m.add_layer(basemaps.Esri.WorldStreetMap)
    elif options_basemap.value == "OpenTopoMap":
        m.add_layer(basemaps.OpenTopoMap)
    elif options_basemap.value == "WorldTopoMap":
        m.add_layer(basemaps.Esri.WorldTopoMap)
    elif options_basemap.value == "WorldImagery":
        m.add_layer(basemaps.Esri.WorldImagery)
    elif options_basemap.value == "Terrain":
        m.add_layer(basemaps.Stamen.Terrain)
    elif options_basemap.value == "Watercolour":
        m.add_layer(basemaps.Stamen.Watercolor)
b_change_basemap.on_click(change_basemap_button_clicked)