hotwired / turbo-site

turbo.hotwired.dev web site
83 stars 101 forks source link

Missing Documentation for Turbo.setFormMode #189

Closed nzifnab closed 2 weeks ago

nzifnab commented 5 months ago

While looking for a way to disable turbo for form submissions (due to compatibility issues while trying to add turbo to a mature rails site), I ran across this: https://stackoverflow.com/questions/70921317/how-can-i-disable-hotwire-turbo-the-turbolinks-replacement-for-all-forms-in

which links to this merged-in feature: https://github.com/hotwired/turbo/pull/419

But Turbo.setFormMode appears to be undocumented on the turbo documentation site, making it's discoverability difficult, and making it unclear whether that's an intended feature or a hidden implementation detail that may change in the future.

Can we get this documented?

brunoprietog commented 3 months ago

Hi @nzifnab, feel free to open a PR and we can merge it!