Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'disabled' option is not working for NavItem #81

Open
nuds-zhao opened this issue Mar 31, 2021 · 0 comments
Open

'disabled' option is not working for NavItem #81

nuds-zhao opened this issue Mar 31, 2021 · 0 comments

Comments

@nuds-zhao
Copy link

nuds-zhao commented Mar 31, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant