Vps 31/number input objects#417
Conversation
|
In regards to input validation, could we instead prevent non-number inputs in each field rather than allowing the user to type characters? |
yeah that was an option between like 3 other options I had vps-2026-05-30_20.07.25.mp4i was inputting letters it was jst rejecting looked like this, it was okay but i couldn't decide so i just copied google slides implementation it jst tells if you input something incorrectly I can do either idm one just saves val prior to checking if its a num other checks first then saves |
leowla
left a comment
There was a problem hiding this comment.
Does not work for line and speech box. Is this intentional?
Co-authored-by: Leo Wang <git@leowla.com>
No I didn't test it but I also assumed it would cuz it should all be component objects, let me look into it |
Issue
Need num input for x y width and height for canvas objects
Solution
Use the same method as when resizing objects with the mouse, add num input for x y and then calc width based on both x and height based on both y's
Vid
vps-2026-05-30_17.34.28.mp4
Risk
none isolated component
Other
There is check if num else reject but its just a popup below the input box idk if there is another way preferable that is common throughout the site for errors.
Checklist