You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't really get the correction. This way we can't update the disabled prop at runtime. (when disabled the component will no longer re-render).
Why not just add nextProps.disabled !== this.props.disabled ? like this :
Hi,
I don't think that fix for #258 is OK
I don't really get the correction. This way we can't update the disabled prop at runtime. (when disabled the component will no longer re-render).
Why not just add nextProps.disabled !== this.props.disabled ? like this :
shouldComponentUpdate(nextProps, nextState) { return (nextProps.value !== this.props.value) || (this.state.currentMonth !== nextState.currentMonth) || (this.state.currentYear !== nextState.currentYear) || (this.props.minDate !== nextProps.minDate) || (this.props.maxDate !== nextProps.maxDate) || nextProps.disabled !== this.props.disabled; }
The text was updated successfully, but these errors were encountered: