@@ -1117,16 +1117,18 @@ export class TopBar extends Component {
11171117 }
11181118
11191119 listenToSlash = ( e ) => {
1120- const hasClassNameAndNotAceInput = e . target . className
1121- ? e . target . className . indexOf ( 'ace_text-input' ) === - 1
1122- : true ;
1123- if (
1124- e . keyCode === 191 &&
1125- e . target . tagName . toLowerCase ( ) !== 'input' &&
1126- hasClassNameAndNotAceInput
1127- ) {
1128- setTimeout ( ( ) => this . selector . focus ( ) ) ;
1129- }
1120+ try {
1121+ const hasClassNameAndNotAceInput = e . target . className
1122+ ? e . target . className ?. indexOf ( 'ace_text-input' ) === - 1
1123+ : true ;
1124+ if (
1125+ e . keyCode === 191 &&
1126+ e . target . tagName ?. toLowerCase ( ) !== 'input' &&
1127+ hasClassNameAndNotAceInput
1128+ ) {
1129+ setTimeout ( ( ) => this . selector . focus ( ) ) ;
1130+ }
1131+ } catch ( _err ) { }
11301132 } ;
11311133
11321134 componentDidMount ( ) {
@@ -1739,7 +1741,7 @@ export class TopBar extends Component {
17391741 { ( { openedSidebar } ) => (
17401742 < nav
17411743 className = "navbar navbar-expand-md fixed-top"
1742- // style={{ zIndex: 100 }}
1744+ // style={{ zIndex: 100 }}
17431745 >
17441746 < div className = "container-fluid d-flex justify-content-center justify-content-lg-between" >
17451747 < div className = "d-flex flex-column flex-md-row top-md-0 w-100" >
@@ -2095,9 +2097,8 @@ export class TopBar extends Component {
20952097 />
20962098 < ul
20972099 id = "dropdown"
2098- className = { `custom-dropdown ${
2099- this . state . dropdownStatus === 'closed' ? 'closed-dropdown' : ''
2100- } py-2 pb-4`}
2100+ className = { `custom-dropdown ${ this . state . dropdownStatus === 'closed' ? 'closed-dropdown' : ''
2101+ } py-2 pb-4`}
21012102 aria-labelledby = "dropdownMenuParams"
21022103 onClick = { ( e ) => {
21032104 this . setState ( { dropdownStatus : 'closed' } ) ;
0 commit comments