Skip to content

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

@kala2

Description

@kala2

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions