Black Lives Matter. Please consider donating to Black Girls Code today.

Remove/show figure modebar programatically

The modebar (toolbar) on my Dash figure are not floating: it is disappeared on Firefox 61.0.1 and always shows on Chrome 68.0.3440.75.
I am thinking of a workaround to have a check box for showing / not showing the toolbar and have a callback to set True/False for ‘displayModeBar’ property of figure ‘config’ dynamically. But it seems that 'config’of figure cannot be use as callback output, unlike figure ‘layout’. Is it possible?