Could your example to use `inputRef={ ref => this.textInput = ref }` instead of `document.querySelector()`?