Open thearabbit opened 7 years ago
Could your example to use inputRef={ ref => this.textInput = ref } instead of document.querySelector()?
inputRef={ ref => this.textInput = ref }
document.querySelector()
It could, but the structure of the <FormControl /> component from React Bootstrap made this difficult in the past (hard to access the nested refs if I recall correctly).
<FormControl />
Could your example to use
inputRef={ ref => this.textInput = ref }
instead ofdocument.querySelector()
?