react-sortablejs icon indicating copy to clipboard operation
react-sortablejs copied to clipboard

TypeError: Cannot read properties of null (reading 'props')

Open fengxinming opened this issue 2 years ago • 1 comments

child is uniformly converted into null.

return Children.map(children as ReactElement<any>[], (child, index) => {
      if (child === undefined) return undefined;

      const item = list[index] || {};
      const { className: prevClassName } = child.props;

      // @todo - handle the function if avalable. I don't think anyone will be doing this soon.
      const filtered = typeof filter === "string" && {
        [filter.replace(".", "")]: !!item.filtered,
      };

fengxinming avatar Mar 06 '23 10:03 fengxinming

is there any workaround for this? I would really appreciate it :)

nolikob avatar Oct 18 '23 14:10 nolikob