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
Current behavior
It updates the dismissable only when the visible prop is updating.
as per the example code, I have to set staet of visible in on click twice in order to change the value of dismissable in the sidebar.
dismissable={this.state.isDismissable}
Expected behavior
should update the dismissable without needing to change the visible.
[x] bug report
Current behavior
It updates the dismissable only when the visible prop is updating.
as per the example code, I have to set staet of visible in on click twice in order to change the value of dismissable in the sidebar.
dismissable={this.state.isDismissable}
Expected behavior
should update the dismissable without needing to change the visible.
Example code
iconsTemplate={() => (<button className='p-sidebar-close p-link' onClick={() => {this.setState({ isDismissable: !this.state.isDismissable, IsSideBarVisible: false }, () => this.setState({ IsSideBarVisible: true })); }}> <TiPin className='p-sidebar-close-icon' style={{ color: this.state.isDismissable ? '#848484' : 'blue' }} /> </button>)}
React version. [16.8.6]
PrimeReact version: [3.1.9]
Browser: [all]
Language: [all]
The text was updated successfully, but these errors were encountered: