Selected Can't Change Props
skytoup opened this issue · comments
skytoup commented
line 60:
{!self.props.selected && (self.state.selected == el.props.name) ? React.cloneElement(el, self.state.props) : el}
Should be?
{!self.props.locked && (self.state.selected == el.props.name) ? React.cloneElement(el, self.state.props) : el}
Chester Wood commented
Not sure what you're trying to do here. The locked
prop is only for enabling the onLongPress
action and disabling onPress
. It has nothing to do with rendering. Could you provide more details on the problem you're seeing?
Pavel Aksonov commented
Please check latest version, now component is totally stateless.