Open lekhnath opened 1 week ago
Looks like the IconField
just blindly puts the iconPosition on all child elements.
<div {...rootProps} ref={elementRef}>
{Children.map(props.children, (child, index) =>
cloneElement(child, {
iconPosition: props.iconPosition
})
)}
</div>
Describe the bug
React does not recognize the
iconPosition
prop on a DOM element wheniconPosition
prop inIconField
is used withAutoComplete
component.Reproducer
https://stackblitz.com/edit/vitejs-vite-o12afk
System Information
Steps to reproduce the behavior
Expected behavior
AutoComplete and IconField are not composable. We should be able to combine any React component with any other component seamlessly.