Currently, the style display: inline-block is applied to the RegionSelect component. This is currently breaking.
Idea1(easy):
Remove display: inline-block and replace with a conditional that applies this style only if constraints prop is true.
Idea2(harder):
Pass a ref to the underlying child, access this ref and measure the width/height and use these child widths and heights for constraints.
Currently, the style
display: inline-blockis applied to the RegionSelect component. This is currently breaking.Idea1(easy):
Remove
display: inline-blockand replace with a conditional that applies this style only ifconstraintsprop istrue.Idea2(harder):
Pass a ref to the underlying child, access this ref and measure the width/height and use these child widths and heights for constraints.