hotwired / turbo

The speed of a single-page web application without having to write any JavaScript
https://turbo.hotwired.dev
MIT License
6.73k stars 428 forks source link

data-turbo="false" misbehaviour #1282

Open joff13 opened 4 months ago

joff13 commented 4 months ago

Hi

I need to add data-turbo="false" to a button to deal with servin attached bin file (click download an get a pdf)

<button class="some class" data-turbo="false" type="submit" value="generate_my_pdf" name="generate_pdf">download</button>

but adding data-turbo="false"

the post request is done withou value and name

it's a bug? am I missing something ?

thanks C

4lllex commented 2 months ago

You might want to add some more details. Seems to post with name and value:

Parameters: {"authenticity_token"=>"[FILTERED]", "generate_pdf"=>"generate_my_pdf"}