We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f76c27c commit f0f5968Copy full SHA for f0f5968
lib/containers/hyper.tsx
@@ -85,7 +85,13 @@ class Hyper extends React.PureComponent<HyperProps> {
85
86
onTermsRef = (terms: Terms) => {
87
this.terms = terms;
88
- window.focusActiveTerm = this.handleFocusActive;
+ window.focusActiveTerm = (uid?: string) => {
89
+ if (uid) {
90
+ this.handleFocusActive(uid);
91
+ } else {
92
+ this.terms.getActiveTerm().focus();
93
+ }
94
+ };
95
};
96
97
componentWillUnmount() {
0 commit comments