概要
Reactstrap のモーダルを開いた時に自動的に input にfocus を当てて欲しい(モーダルを開いて文字を打てば入力ができる)
純粋な実装方法
input の autofocus attr もしくは onFocus() を使う
AsyncTypeAhead by react-bootstrap-typeahead
今回フォーカスを当てたい react-bootstrap-typeahead の AsyncTypeAhead にも、その props に AutoFocus が用意されていて input 同様のフォーカスの挙動ができる
問題点
Reactstrap の Modal 上ではこのフォーカスがうまく動かない