Closed paulshen closed 2 years ago
Thanks for this awesome library! I noticed that defaultStickyColumnName was not being respected when testing it out.
defaultStickyColumnName
Here's a codesandbox repro https://codesandbox.io/s/dazzling-cray-bjmjs
It seems like columnNames is updated after handleStickyColumnNameChange
columnNames
handleStickyColumnNameChange
https://github.com/githubocto/flat-ui/blob/07b88ec9d3961a451091bfbf2455b23c6d8b7af5/src/components/grid.tsx#L168-L171 https://github.com/githubocto/flat-ui/blob/07b88ec9d3961a451091bfbf2455b23c6d8b7af5/src/components/grid.tsx#L183
which causes the issue in this logic
https://github.com/githubocto/flat-ui/blob/07b88ec9d3961a451091bfbf2455b23c6d8b7af5/src/store.ts#L86-L90
Thanks for this awesome library! I noticed that
defaultStickyColumnName
was not being respected when testing it out.Here's a codesandbox repro https://codesandbox.io/s/dazzling-cray-bjmjs
It seems like
columnNames
is updated afterhandleStickyColumnNameChange
https://github.com/githubocto/flat-ui/blob/07b88ec9d3961a451091bfbf2455b23c6d8b7af5/src/components/grid.tsx#L168-L171 https://github.com/githubocto/flat-ui/blob/07b88ec9d3961a451091bfbf2455b23c6d8b7af5/src/components/grid.tsx#L183
which causes the issue in this logic
https://github.com/githubocto/flat-ui/blob/07b88ec9d3961a451091bfbf2455b23c6d8b7af5/src/store.ts#L86-L90