diff --git a/webapp/src/components/boardComponent.tsx b/webapp/src/components/boardComponent.tsx index d7a722168..2c193b1b9 100644 --- a/webapp/src/components/boardComponent.tsx +++ b/webapp/src/components/boardComponent.tsx @@ -29,16 +29,12 @@ type Props = { } type State = { - isSearching: boolean shownCardId?: string - viewMenu: boolean selectedCardIds: string[] - showFilter: boolean } class BoardComponent extends React.Component { private backgroundRef = React.createRef() - private searchFieldRef = React.createRef() private keydownHandler = (e: KeyboardEvent) => { if (e.target !== document.body) { @@ -71,10 +67,7 @@ class BoardComponent extends React.Component { constructor(props: Props) { super(props) this.state = { - isSearching: Boolean(this.props.boardTree.getSearchText()), - viewMenu: false, selectedCardIds: [], - showFilter: false, } } @@ -82,12 +75,6 @@ class BoardComponent extends React.Component { return true } - componentDidUpdate(prevPros: Props, prevState: State): void { - if (this.state.isSearching && !prevState.isSearching) { - this.searchFieldRef.current?.focus() - } - } - private showCardInUrl() { const queryString = new URLSearchParams(window.location.search) const cardId = queryString.get('c') || undefined