diff --git a/res/css/structures/_LeftPanel.scss b/res/css/structures/_LeftPanel.scss index f8ca34a0c7..02dccaefa1 100644 --- a/res/css/structures/_LeftPanel.scss +++ b/res/css/structures/_LeftPanel.scss @@ -120,7 +120,6 @@ $roomListCollapsedWidth: 68px; background-color: $panel-actions; padding: 2px 4px; user-select: none; - pointer-events: none; font-size: $font-12px; line-height: $font-15px; font-weight: $font-semi-bold; diff --git a/src/components/structures/RoomSearch.tsx b/src/components/structures/RoomSearch.tsx index 069cac346d..881533713b 100644 --- a/src/components/structures/RoomSearch.tsx +++ b/src/components/structures/RoomSearch.tsx @@ -46,7 +46,7 @@ interface IState { @replaceableComponent("structures.RoomSearch") export default class RoomSearch extends React.PureComponent { - private dispatcherRef: string; + private readonly dispatcherRef: string; private inputRef: React.RefObject = createRef(); private searchFilter: NameFilterCondition = new NameFilterCondition(); @@ -136,9 +136,9 @@ export default class RoomSearch extends React.PureComponent { } }; - public focus(): void { + public focus = (): void => { this.inputRef.current?.focus(); - } + }; public render(): React.ReactNode { const classes = classNames({ @@ -154,7 +154,7 @@ export default class RoomSearch extends React.PureComponent { }); let icon = ( -
+
); let input = ( { onClick={this.clearInput} /> ); - let shortcutPrompt =
+ let shortcutPrompt =
{ isMac ? "⌘ K" : "Ctrl K" }
;