react-sidenav icon indicating copy to clipboard operation
react-sidenav copied to clipboard

'disabled' option is not working for NavItem

Open nuds-zhao opened this issue 4 years ago • 0 comments

Here is my code:

<NavItem
           eventKey="button-download" 
           onClick={() => {
                           this.collapseSidebar();
                             context.downloadAoi(aoi)
                          }}
                       //disabled={downloading}
                        disabled={true}
                         title='Download'
                         style={{ background: '#0000008f' }}
                        >
                        <NavIcon>
                            {downloading?(  <i className="fas fa-spinner fa-pulse" style={{ fontSize: '1.75em' }} />)
                            :(  <i className="fa fa-fw fa-download" style={{ fontSize: '1.75em' }} />)}
                        </NavIcon>
                        <NavText>
                             Download
                        </NavText>
                </NavItem>

This "disabled" property makes no change to the NavItem.

nuds-zhao avatar Mar 31 '21 22:03 nuds-zhao