You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to resize an image until you click/tab to another field first #3249
When trying to resize a stopped image, I changed the RAM value and tried to click Resize. The option was disabled. You can enable it by clicking on a different field, pressing tab, etc. but it should be able to work without that.
A little wacky though, since if you focus the form, make no changes, then try and click the submit button, it'll disable before the click transmits. Disorienting!
The suggestion there is in some sense what I'm describing above, which isn't great since it has to be applied form-by-form (and also it doesn't answer the equivalent bad experience of "input is invalid and you change it to a valid number", which also has the blurring problem). Looking around at how others attempt to make onChange a little more eager, I think I can directly get these number inputs better-behaved while only... barely reimplementing the internals of react-aria number fields.
Activity
benjaminleonard commentedon Jun 15, 2026
I'm guessing this is because number fields do not update the form value until they have been blurred. This is because a number field lets you type things like
1,000and transform it once you've done with the field. https://react-aria.adobe.com/NumberField/useNumberField.html#controlledThat said the UX isn't great in this instance. Potentially we can use client-side validation on submit rather than just disabling the button.
fakemonster commentedon Jun 24, 2026
To make an evil suggestion: we could autoblur the form when mousing over the submit button
A less-evil one: we could just ignore the active comparison while you're in the form. something like this
A little wacky though, since if you focus the form, make no changes, then try and click the submit button, it'll disable before the click transmits. Disorienting!
askfongjojo commentedon Jul 4, 2026
See also #2647 - the suggested fix there sounds reasonable to me.
fakemonster commentedon Jul 7, 2026
The suggestion there is in some sense what I'm describing above, which isn't great since it has to be applied form-by-form (and also it doesn't answer the equivalent bad experience of "input is invalid and you change it to a valid number", which also has the blurring problem). Looking around at how others attempt to make
onChangea little more eager, I think I can directly get these number inputs better-behaved while only... barely reimplementing the internals of react-aria number fields.Fire off number updates eagerly (#3282)