Posted 22 April 2024, 11:45 am EST
I am using the FlexGrid in a React app. I have a variable that defines the desired height of the grid. This variable is of type string|number|undefined.
I render the FlexGrid like this:
<FlexGrid
...
style={gridHeight !== undefined
? { height: gridHeight }
: undefined
}
>
...
</FlexGrid>
This is the standard way to apply styles to a React component (such as a div). If the variable is undefined, send undefined to the style property of the component. When sending undefined in this way to the FlexGrid, it crashes with a massive error:
I have worked around this bug by putting the FlexGrid inside a div and applying my style to the grid instead.
I have attached a React Typescript component file that demonstrates the issue.
TestGridPage.zip