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
<SelectValue
asChild
placeholder="Select a Folder"
>
<div>{customvalue}</div>
</SelectValue>
Current Behavior
Throws Error Invalid prop style supplied to React.Fragment.
Expected behavior
Should not throw this Error
Suggested solution
Current code:
<Primitive.span{...valueProps}ref={composedRefs}// we don't want events from the portalled `SelectValue` children to bubble// through the item they came fromstyle={{pointerEvents: 'none'}}>{shouldShowPlaceholder(context.value) ? <>{placeholder}</> : children}</Primitive.span>
My guess is the asChild applies the style style={{ pointerEvents: 'none' }} to the Fragment of <>{placeholder}</>
Should be possible to just be {placeholder} instead so you can solve it yourself by providing a proper ReactNode as placeholder.