You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.
The children Flexbox elements will have display: flex even though I want them to be flex children rather than containers. This isn't a problem for regular javascript, because the propTypes aren't actually enforced, so you could just do <Flexbox display="block" /> for the child element (though even that seems really cumbersome). However, for typescript, the types are actually enforced by the compiler, and display is restricted to flex and inline-flex, so you wouldn't be able to hack around it as I showed above without a compiler error.
An unideal solution would be to not use Flexbox for children, but rather just plain elements, and then to define the flex properties for them elsewhere. However, I'd really rather just be able to use the same API as the container.
The text was updated successfully, but these errors were encountered:
Currently, if I do something like:
The children
Flexbox
elements will havedisplay: flex
even though I want them to be flex children rather than containers. This isn't a problem for regular javascript, because the propTypes aren't actually enforced, so you could just do<Flexbox display="block" />
for the child element (though even that seems really cumbersome). However, for typescript, the types are actually enforced by the compiler, anddisplay
is restricted toflex
andinline-flex
, so you wouldn't be able to hack around it as I showed above without a compiler error.An unideal solution would be to not use
Flexbox
for children, but rather just plain elements, and then to define the flex properties for them elsewhere. However, I'd really rather just be able to use the same API as the container.The text was updated successfully, but these errors were encountered: