Semantic-ui-react: Search: How to make Search autofocus?

Created on 13 Oct 2019  路  4Comments  路  Source: Semantic-Org/Semantic-UI-React

I want a autofocus in Search . How to do it?

question

All 4 comments

馃憢 Thanks for opening your first issue here! If you're reporting a 馃悶 bug, please make sure you've completed all the fields in the issue template so we can best help.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

You can pass custom Input component props object to the Search's input prop -

https://codesandbox.io/s/semantic-ui-example-96ymq

Thanks @honzajerabek , that worked perfectly! I now have that running on https://covidcommitment.org/ .

@honzajerabek shared a proper solution, thanks 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nix1 picture nix1  路  3Comments

KevinGorjan picture KevinGorjan  路  3Comments

eXtreme picture eXtreme  路  3Comments

laukaichung picture laukaichung  路  3Comments

mattmacpherson picture mattmacpherson  路  3Comments