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

How to close the dropdown after a child element is clicked #45

Open
kala2 opened this issue Jun 26, 2018 · 0 comments
Open

How to close the dropdown after a child element is clicked #45

kala2 opened this issue Jun 26, 2018 · 0 comments

Comments

@kala2
Copy link

kala2 commented Jun 26, 2018

Is there any way to force close the dropdown when a child nav item is selected? I prefer not to use jquery

<Nav id="customers">
            <NavIcon><SvgIcon icon={ic_account_circle} /></NavIcon>
            <NavText> {props.devs.changed_role === null ? props.devs.default_role : props.devs.changed_role} </NavText>
            <Nav id="dashboard2"  onNavClick={() => [store.dispatch({type: 'CHANGE_USER', payload: 'AU'}), store.dispatch(changeUserRole('Australia'))]}>
                <NavIcon><SvgIcon size={16} icon={ic_show_chart} /></NavIcon>
                <NavText> AU </NavText>
            </Nav>
 </Nav>
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