I am doing an inline editing feature on the show page with the 'Edit' button above the frame that loads with turbo. Trying to add a toggle on the edit button that it switches to the cancel button in edit mode.
Figured a simple stimulus controller would do the trick except when you add the data-action="click->edit-button#toggle" that overides the turbo action on the button. Thoughts? Ideas?
<div turbo-controller="edit-button">
<a class="btn btn-sm btn-primary btn-outline" data-turbo-frame="project" data-edit-button-target="button" data-value="show" href="/foobar/234/edit">Edit</a>
<turbo-frame id="project">
content
</turbo-frame>
</div>