I'd like to get this functionality in a downshift search box component
<input onfocus="this.select();" onmouseup="return false;" />
so that when a user clicks on the search box it will select all the text
I've tried adding it directly to the input element but it doesn't work. Downshift has a state reducer and I tried adding it there but it doesn't work either or I'm not doing it right
I'm guessing it is possible with the stateReducer but I don't know how to do it