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

Incombatible with React 0.14+ ! this.props.children must not be manipulated!

Open ghost opened this issue 10 years ago • 3 comments

the component does not work with react 0.14+, because "this.props.children" is trying to be changed.

ghost avatar Jan 21 '16 04:01 ghost

+1

react(0.14.7) and when there is only one Tabs.Panel

<Tabs>
    <Tabs.Panel title='Tab #1'>
      <h2>Content #1 here</h2>
    </Tabs.Panel>
</Tabs>

error: Uncaught TypeError: Cannot assign to read only property 'children' of object '#<Object>'

in _getMenuItems :

if (!Array.isArray(this.props.children)) {
    this.props.children = [this.props.children];
}

naoyeye avatar Mar 02 '16 04:03 naoyeye

I am also facing same error as above. Any solution for this?

Muneem avatar Nov 22 '16 22:11 Muneem

I'm facing the same problem. Any news about it?

AndradeB91 avatar Oct 11 '17 16:10 AndradeB91