This is the same issue that I ran into:
https://community.plotly.com/t/bug-in-callback-context/31621/2
The example works on the documentation website but when I run it in my own environment “Button 3 was most recently clicked” shows upon the app loading.