Skip to content

Commit

Permalink
fix(Grid): hides initial abrupt render
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya-kumawat committed Aug 21, 2020
1 parent bc187a3 commit 38aedad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/components/organisms/grid/Cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ export const Cell = (props: CellProps) => {
if (from.type === to.type) _this.reorderCol(from.name, to.name);
}}
style={{
visibility: _this.gridRef.current === null ? 'hidden' : 'visible',
width: getWidth.call(_this, schema.width || width),
minWidth: getWidth.call(_this, schema.minWidth || minWidth),
maxWidth: getWidth.call(_this, schema.maxWidth || maxWidth)
Expand Down

0 comments on commit 38aedad

Please sign in to comment.