Closed 7coil closed 4 years ago
@7coil thanks
If you've googled this and need a temporary workaround, just check if the current state is expanded.
if (this.navigationView.current.state.expanded) {
this.navigationView.current.toggleExpanded(false)
}
If a boolean is used for the toggleExpanded function and the variable is the same as the current state (i.e. telling the NavigationView to close when it is already closed, or open when it is already open), the NavigationView would have toggled it's state in the past. This (hopefully) fixes this issue.