reactdatagrid icon indicating copy to clipboard operation
reactdatagrid copied to clipboard

Header/Filter row state issues with scrolling and hide options

Open muhammad-usman-anwar opened this issue 3 years ago • 2 comments

  • community
  • @inovua/reactdatagrid-community: 4.5.7
  • react: 16.14

Relevant code or config

<ReactDataGrid
            theme='default-dark'
            idProperty="id"
            columns={columns}
            dataSource={props.data ? createIds(sanitizeTimestampsFromResults(props.data)) : []}
            style={gridStyle}
            rowHeight={24}
            headerHeight={30}
            defaultFilterValue={filterValue}
            onRowClick={(rowProps) => {
                //console.log(rowProps.data?.optionSymbol);
                if (props?.onSymbolSelect)
                    props.onSymbolSelect(rowProps.data?.optionSymbol);
            }}
        />

What happened:

  • On horizontal scroll, especially a bit fast makes the whole header row jumbled up image
  • On toggling between hide or show filter row, it nothing happens(in below image the row should have been hidden) image

A single solution works for both of them for now, If I just do a bit horizontal scroll after the issue. It resets the state and both of them are fixed. It may be due to the state is not handled properly, or some part of my config is causing it to break(these behaviors should by default work irrespective of config)

I have spent a lot of time tinkering with configuration, but nothing seems to fix this, please look into it ASAP

muhammad-usman-anwar avatar Dec 23 '21 22:12 muhammad-usman-anwar

Please provide a reproduction repository on codesandbox.

inovua-admin avatar Jan 27 '22 11:01 inovua-admin

ok will do

muhammad-usman-anwar avatar Jan 27 '22 12:01 muhammad-usman-anwar