I am able to reproduce this behavior with a complete example you can clone and run. Please see my code here:
Also, I have a related issue that takes this a step further but I assume because n_clicks goes from 1 back to the default value, 0 in my case per my settings, then this is causing the issues I cited in my post found here: