Describe the bug
I introduced hotwired/turbo-rails to the application. Since then the click event associated with toggle_bool_column is duplicated.
To Reproduce
I click on the button, then the code runs twice. The database updating happens, but the 'on' class toggles twice and remains it was before.
If I reload the page the button has the correct status.
Describe the bug I introduced hotwired/turbo-rails to the application. Since then the click event associated with toggle_bool_column is duplicated.
To Reproduce I click on the button, then the code runs twice. The database updating happens, but the 'on' class toggles twice and remains it was before. If I reload the page the button has the correct status.