This repository has been archived on 2026-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
fradrive-old/frontend/src/utils/form/reactive-submit-button.md
2019-06-03 11:53:01 +02:00

18 lines
448 B
Markdown

# Reactive Submit Button Utility
Disables a forms LAST sumit button as long as the required inputs are invalid
(only checks if the value of the inputs are not empty)
## Attribute: (none)
(automatically setup on all form tags)
## Params:
- `data-formnorequired: string`\
If present the submit button will never get disabled
## Example usage:
```html
<form uw-reactive-submit-button>
<input type='text' required>
<button type='submit'>
```