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
I'm working on creating a custom component for the search area on a combobox and running into a bit of an issue. I know I can pass my custom component in (which works perfectly) – but I'm having trouble passing additional props!
I think it's breaking the reference to the input itself and not working. I've tried as={(props, ref) => <CustomInput customProp={customValue} {...props} ref={ref} />} too but – no luck :)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm working on creating a custom component for the search area on a combobox and running into a bit of an issue. I know I can pass my custom component in (which works perfectly) – but I'm having trouble passing additional props!
I'm trying to do something like this:
And referencing it like:
I think it's breaking the reference to the input itself and not working. I've tried
as={(props, ref) => <CustomInput customProp={customValue} {...props} ref={ref} />}
too but – no luck :)Any suggestions would be greatly appreciated!!
Beta Was this translation helpful? Give feedback.
All reactions