Skip to content

Commit ec3481e

Browse files
committed
Add comment.
1 parent 4dd46cb commit ec3481e

File tree

1 file changed

+2
-0
lines changed
  • digitransit-component/packages/digitransit-component-autosuggest/src/helpers

1 file changed

+2
-0
lines changed

digitransit-component/packages/digitransit-component-autosuggest/src/helpers/MobileSearch.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ const MobileSearch = ({
188188
</div>
189189
);
190190
};
191+
// This does not seem to do anything.
192+
// When doing quick testing on this it looked like inputRef.current is always undefined.
191193
if (focusInput && inputRef.current?.input) {
192194
inputRef.current.input.focus();
193195
}

0 commit comments

Comments
 (0)