diff --git a/.babelrc b/.babelrc index 376b4a8264..c6c0b2e3aa 100644 --- a/.babelrc +++ b/.babelrc @@ -9,6 +9,7 @@ "chrome/content/zotero/xpcom/citeproc.js", "resource/react.js", "resource/react-dom.js", + "resource/react-virtualized.js", "test/resource/*.js" ], "plugins": [ diff --git a/chrome/content/zotero/components/search.jsx b/chrome/content/zotero/components/search.jsx index 872d301da3..5e448afbfe 100644 --- a/chrome/content/zotero/components/search.jsx +++ b/chrome/content/zotero/components/search.jsx @@ -54,17 +54,17 @@ class Search extends React.PureComponent { } focus() { - this.inputRef.focus(); + this.inputRef.current.focus(); } render() { return (