sergiop / react-giphy-searchbox

Responsive and customizable search and select for Giphy's GIFs and Stickers.
https://sergiop.github.io/react-giphy-searchbox/
MIT License
48 stars 19 forks source link

Add `autoFocus` prop. #43

Closed sergiop closed 3 years ago

sergiop commented 3 years ago

Closes https://github.com/sergiop/react-giphy-searchbox/issues/33

This PR adds the autoFocus prop, allowing to autofocus the search input field on component initialization.

codecov[bot] commented 3 years ago

Codecov Report

Merging #43 (3649786) into master (c79e86a) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #43   +/-   ##
=======================================
  Coverage   98.11%   98.11%           
=======================================
  Files          13       13           
  Lines         106      106           
=======================================
  Hits          104      104           
  Misses          2        2           
Impacted Files Coverage Δ
src/components/SearchForm/SearchForm.js 100.00% <ø> (ø)
src/index.js 95.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c79e86a...3649786. Read the comment docs.