react-window

React/MUI Popover positioning incorrectly with anchorPosition

笑着哭i 提交于 2021-02-10 07:11:58
问题 I'm using a React/MUI Popover inside a react-window List element and am unable to get the Popover to position correctly -- it always winds up in the top left corner of the window (the component is unable to perform a getBoundingClientRctd() on the anchor element [ anchorEl in the docs]). So to get around that problem temporarily, I decided to use the anchorPosition parameter which allows to set an absolute position -- in my case, just the middle of the window. That's not working either. I've

React/MUI Popover positioning incorrectly with anchorPosition

流过昼夜 提交于 2021-02-10 07:10:45
问题 I'm using a React/MUI Popover inside a react-window List element and am unable to get the Popover to position correctly -- it always winds up in the top left corner of the window (the component is unable to perform a getBoundingClientRctd() on the anchor element [ anchorEl in the docs]). So to get around that problem temporarily, I decided to use the anchorPosition parameter which allows to set an absolute position -- in my case, just the middle of the window. That's not working either. I've

react-table lost focus on filter?

两盒软妹~` 提交于 2021-02-09 11:47:06
问题 I am making a table base on react-table v7 and react-window. I found other question on this site with the same question but almost they are using v6 - almost difference. Problem is the filter text field will lost focus after we type and even when we just touch the input (I know the table is re-render). But I cannot find any solution for days. Please help and thank you very much. Here is the code sanbox 回答1: You are using uniqied() for key i.e key={uniqid()} . So on every re-render, you are

React table v7 fixed column with react-window

半城伤御伤魂 提交于 2020-06-29 03:56:41
问题 I have a table with react-table v7. Have used react-window for virtualisation. Now the table has last column fixed but I am unable to fix the last column of the table. React-window's internal element has overflow: auto which is not letting the column to be sticky at last. Here's the link reproduce the issue. I am trying to achieve something around these lines. If you see the issue link, I want the last row to be fixed at a position and keep the rest horizontally scrollable. 来源: https:/