I noticed that disable is not working as expected for component in REACT.
<Link onClick={() => this.DoSomething()}
disabled={this.props.status != "Approved"}>
<NavDropdown.Item>Approve</NavDropdown.Item>
</Link>
I want to stop the traversal of link for particular condition. --For status =Approved only in this case i want it to call this.DoSomething()
With ternary(conditional) operator condition, i am unable to compare in the LINK component.
I cant not put entire link component in conditional operator as i need NavBar for both the scenarios.