widgetti / solara

A Pure Python, React-style Framework for Scaling Your Jupyter and Web Apps
https://solara.dev
MIT License
1.89k stars 138 forks source link

Support autofocus #775

Open maartenbreddels opened 1 month ago

maartenbreddels commented 1 month ago

For all our Inputs it makes total sense to support autofocus: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus

vuetify2 and 3 support it, and it's the HTML standard.

StefanoCandiani commented 1 month ago

Good afternoon, I would be interested in trying to help with this, is that possible? Also are the inputs you're referencing the ones in ./solara/components/inputs.py ?

maartenbreddels commented 1 month ago

Hi Stefano,

Great, sounds good. Yes, I think that should be it.

I am looking forward to your PR!

StefanoCandiani commented 1 month ago

Hello,

I just completed the PR. An autofocus feature should have been implemented for the inputs but please let me know if I need to fix any mistakes in my code or if I can optimize.

Thank you!