mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	| 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 | ||
|---|---|---|
| .. | ||
| Btn.vue | ||
| Checkbox.vue | ||
| ContextMenuDropdown.vue | ||
| Dropdown.vue | ||
| EditableText.vue | ||
| FileInput.vue | ||
| IconBtn.vue | ||
| InputDropdown.vue | ||
| LibrariesDropdown.vue | ||
| LibraryIcon.vue | ||
| LoadingIndicator.vue | ||
| MediaIconPicker.vue | ||
| Menu.vue | ||
| MultiSelect.vue | ||
| MultiSelectDropdown.vue | ||
| MultiSelectQueryInput.vue | ||
| QueryInput.vue | ||
| ReadIconBtn.vue | ||
| RichTextEditor.vue | ||
| TextareaInput.vue | ||
| TextareaWithLabel.vue | ||
| TextInput.vue | ||
| TextInputWithLabel.vue | ||
| TimePicker.vue | ||
| ToggleSwitch.vue | ||
| Tooltip.vue | ||
| VueTrix.vue | ||