diff --git a/webapp/src/components/tableComponent.tsx b/webapp/src/components/tableComponent.tsx index 3e83c37a1..adc0dde70 100644 --- a/webapp/src/components/tableComponent.tsx +++ b/webapp/src/components/tableComponent.tsx @@ -29,33 +29,19 @@ type Props = { } type State = { - isSearching: boolean shownCard?: Card - viewMenu: boolean - showFilter: boolean } class TableComponent extends React.Component { private draggedHeaderTemplate: IPropertyTemplate private cardIdToRowMap = new Map>() private cardIdToFocusOnRender: string - private searchFieldRef = React.createRef() - - constructor(props: Props) { - super(props) - this.state = {isSearching: Boolean(this.props.boardTree?.getSearchText()), viewMenu: false, showFilter: false} - } + state: State = {} shouldComponentUpdate(): boolean { return true } - componentDidUpdate(prevPros: Props, prevState: State): void { - if (this.state.isSearching && !prevState.isSearching) { - this.searchFieldRef.current.focus() - } - } - render(): JSX.Element { const {boardTree, showView} = this.props @@ -225,12 +211,6 @@ class TableComponent extends React.Component { ) } - private focusOnCardTitle(cardId: string): void { - const tableRowRef = this.cardIdToRowMap.get(cardId) - Utils.log(`focusOnCardTitle, ${tableRowRef?.current ?? 'undefined'}`) - tableRowRef?.current.focusOnTitle() - } - private addCard = async (show = false) => { const {boardTree} = this.props