select icon indicating copy to clipboard operation
select copied to clipboard

when custom define Cascader children ,it occur createElement error

Open wing-scud opened this issue 3 years ago • 0 comments

https://github.com/react-component/select/blob/fe1a13a6ccb9551e17fe7c8ea282bf5df907041d/src/BaseSelect.tsx#L348 In code, it use customizeRawInputElement.props.ref, but in line 794, it assignments to self by cloneElement. when i used, children is a ReactNode, it warn i should use forwardRef.when i use it, it occured createElement error.

   {customizeRawInputElement ? (
        React.cloneElement(customizeRawInputElement, {
          ref: customizeRawInputRef,
        })
      ) :<Selector>

why it write this

wing-scud avatar Jan 31 '23 06:01 wing-scud