f.current.focus(); } render() { return dom.div( { id: "font-preview-input-container", }, dom.input({ className: "devtools-searchinput", onChange: this.onChange, onFocus: this.onFocus, maxLength: PREVIEW_TEXT_MAX_LENGTH, placeholder: getStr("fontinspector.previewTextPlaceholder"), ref: this.inputRef, type: "text", value: this.state.value, }) ); } } module.exports = FontPreviewInput; PK