firefly
firefly copied to clipboard
feat: add validate input on blur
before the input validation on submit.
This PR makes it validate on input blur, I have tried the on:change event but after focusing on the input again the error is gone and if the input didn't change it does not trigger validate again.
Summary
Validate input on blur instead of on submit
Changelog
- Add validation on amount and recipient input
Testing
Platforms
Please select any platforms where your changes have been tested.
- Desktop
- [ ] MacOS
- [x] Linux
- [x] Windows
Checklist
Please tick the following boxes that are relevant to your changes.
- [x] I have followed the contribution guidelines for this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added or modified tests that prove my changes work as intended
- [ ] I have verified that new and existing unit tests pass locally with my changes
- [x] I have verified that my latest changes pass CI workflows for testing and linting
- [ ] I have made corresponding changes to the documentation