leaphy-robotics / leaphy-webbased-svelte

Leaphy Easybloqs is software to program Leaphy Robots and Arduino microcontrollers using a block-based programming language.
https://leaphyeasybloqs.com
1 stars 2 forks source link

fix: require a filename for save as dialog #57

Closed rmoesbergen closed 6 months ago

rmoesbergen commented 6 months ago

you can add the required prop on the input element instead of checking in the save method, this will in most browsers also trigger a tooltip indicating you haven't filled out the field, providing additional user feedback

done, still need the return in save() to prevent the dialog from closing when the form is not valid

koen1711 commented 6 months ago

Leaving review to @sverben