audiobookshelf/client
Lars Kiesow 59ad1e5e36
Toggle switch shouldn't submit form
This patch fixes the problem that toggling one of the options in the
user account dialog will automatically submit the form.

The problem got introduced as a combination of the recent accessibility
fixes where some elements got turned into HTML button elements to make
them keyboard accessible. Doing that, I did not realize that the default
type of a button is `submit` [1]. This causes no problems at most places,
but will cause problem within a form (e.g. the user account settings)
where toggling an option is now identical to clicking submit.

This patch fixes the issue by setting the `type` attribute to `button`.
Not only for the toggle switch, but also for a few other elements which
have been recently converted to buttons.

[1] https://www.w3.org/TR/2011/WD-html5-20110525/the-button-element.html#attr-button-type
2023-01-10 22:58:20 +01:00
..
assets Fix:Gentium Book Basic font 2023-01-07 13:06:44 -06:00
components Toggle switch shouldn't submit form 2023-01-10 22:58:20 +01:00
layouts Add:RSS feed for series & cleanup empty series from db #1265 2022-12-31 16:58:19 -06:00
middleware Add:Series filters #712 2022-10-29 15:33:38 -05:00
mixins Bookshelf updates for music tracks 2023-01-03 18:00:01 -06:00
pages Fix:Force AAC when transcoding ALAC audio file streams #1372 2023-01-07 15:58:57 -06:00
players Bookshelf updates for music tracks 2023-01-03 18:00:01 -06:00
plugins Fix filePathToPOSIX used in scan, updates for music track page 2023-01-06 17:10:55 -06:00
static Update Gentium Book Basic Font 2023-01-07 20:25:11 +01:00
store Update:Library folder browser to not save folders from request #1371 2023-01-07 15:31:51 -06:00
strings Update fr.json => ButtonEdit 2023-01-09 22:31:24 +01:00
nuxt.config.js Fix:PWA manifest add PNG icon for desktop browsers #1300 2022-12-20 11:57:52 -06:00
package-lock.json Version bump 2.2.12 2023-01-08 10:48:25 -06:00
package.json Version bump 2.2.12 2023-01-08 10:48:25 -06:00
tailwind.config.js Update:Cleanup audio player 2023-01-08 09:38:37 -06:00