hotwired / turbo-android

Android framework for making Turbo native apps
MIT License
423 stars 51 forks source link

data-turbo-action attributes not working #218

Closed olliekav closed 2 years ago

olliekav commented 2 years ago

I added this on the iOS side as well, which seems to be working fine now but not sure If I'm missing something here?

https://github.com/hotwired/turbo-ios/issues/44

Should data-turbo-action attributes be working on Android as well? e.g

<%= form_for(@event, url: events_path, html: { data: { "turbo-action": "replace" }}) do |f| %>
<%= button_to event_path(@event), method: :delete, data: { confirm: 'Delete this event?' }, form: { 'data-turbo-action': 'replace' } do %>
olliekav commented 2 years ago

Looks like this was because of an Ajax request when uploading images. The form was submitting without turbo attributes.