Closed koolkao closed 2 months ago
ref
is not mapped to anything today in the default Select component. What are you trying to achieve?
Thank you for the response. I'm trying to send focus to
let ref;
<div onClick={ ()=> ref.focus() }>label</div>
<Select ref={ref}></Select>
Is there a better way to do this? thank you
I guess this should pass ref through to Input
essentially. Will take a look at that.
Added in 2281a3cd39a7ca680b8fbce582c716ff4fbafd24 - will be available once released with an example on the website to match.
Release 0.15.0 has now been published which should address this. See new example at https://solid-select.com/?example=Focus%2520with%2520ref
When I pass in a reference like below, similar to the SolidJS tutorial, the ref ends up being undefined
let selectRef; return