prefect
prefect copied to clipboard
Input field type switches when clearing value in optional field
First check
- [X] I added a descriptive title to this issue.
- [X] I used the GitHub search to find a similar issue and didn't find it.
- [X] I refreshed the page and this issue still occurred.
- [X] I checked if this issue was specific to the browser I was using by testing with a different browser.
Bug summary
An optional int input field switches to None whenever the integer value is cleared. This is a minor inconvenience when updating values as at least one digit of the old value needs to remain in the field and can only be removed when the new value is entered.
Reproduction
Any deployment with optional int parameters
Error
See screencast
Browsers
- [X] Chrome
- [X] Firefox
- [ ] Safari
- [ ] Edge
Prefect version
Prefect Cloud
Additional context
See example:
Field has value 7
. User wants to change it. As soon as the value is removed the field jumps to None
. New value can only be entered by appending it to the old value and then removing the old value.