Not sure if this is the right place to add this change. I noticed in tippyjs/react, if you pass:
<Tippy
zIndex={props.zIndex}
>
with props.zIndex being number | undefined, then z-index defaults to 'undefined' if it's not passed. Maybe this is better solved somewhere else (wherever the props are being merged). Obviously a work-around is zIndex={props.zIndex ?? 9999}, but that seems bizarre for consumers to have to re-establish the API's defaults.
Not sure if this is the right place to add this change. I noticed in tippyjs/react, if you pass:
with
props.zIndex
beingnumber | undefined
, then z-index defaults to'undefined'
if it's not passed. Maybe this is better solved somewhere else (wherever the props are being merged). Obviously a work-around iszIndex={props.zIndex ?? 9999}
, but that seems bizarre for consumers to have to re-establish the API's defaults.Thoughts?