Attempt to dismiss focus on mobile

This commit is contained in:
Jackson Harper 2022-04-10 16:07:25 -07:00
parent de72df9828
commit e7528cfc43

View file

@ -92,7 +92,7 @@ function Header(props: HeaderProps): JSX.Element {
<FormInput
ref={inputRef}
type="text"
tabIndex={props.focused ? 0 : -1}
tabIndex={props.focused && !isTouchScreenDevice() ? 0 : -1}
autoFocus={!isTouchScreenDevice()}
value={props.filterText}
placeholder="Filter for label"