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
Hello! Thanks for clojuredocs it's amazing and I use it all the time.
When I go to the homepage: https://clojuredocs.org/ the main search box is not automatically focused and I have to click it before I can search. I use the site so much that this is actually mildly painful.
Thanks @harold. The autofocus capitalization was a good guess, but unfortunately the statically generated input is being replaced on JS load, so the autofocus property wasn't the issue (additionally, React complains if 'autoFocus' isn't camel cased).
Had to manually focus the input on mount to fix the problem. Shipping now, should be up in a minute here.
Hello! Thanks for clojuredocs it's amazing and I use it all the time.
When I go to the homepage: https://clojuredocs.org/ the main search box is not automatically focused and I have to click it before I can search. I use the site so much that this is actually mildly painful.
I grep'd and noticed this:
clojuredocs/src/clj/clojuredocs/pages/intro.clj
Line 135 in 6256370
That capital
F
in the attribute name (:autoFocus
instead of:autofocus
) may be the reason. It's just a hunch, I have not tested.Regardless, if the search box on the home page could autofocus, that would be great.
With appreciation for your time,
-Harold
The text was updated successfully, but these errors were encountered: