HTML button not firing when deployed on Heroku

I am trying to use an html.Button() to to allow text input. It is essentially identical to the example in the documentation.

It works fine on localhost but when I deploy to Heroku the button does not fire when clicked. The cursor does change to the finger pointer when hovered over the button, but no event is registered in the Heroku logs when it is clicked.

Has anybody come across a similar problem?

I’d try checking the browser’s console or the browser’s network tab to see if there are any errors. Also, in older versions of the dash package you had to supply an app.server.secret_key or else requests would fail on the deployed app. In the latest version of dash (see https://plot.ly/dash/installation), you no longer need to do so.