Skip to content

Commit

Permalink
docs(MenuExampleHeaderVertical): fix onClick handler (#3799)
Browse files Browse the repository at this point in the history
handleItemClick = (e, { name }) => this.setState({ activeItem: name });
  • Loading branch information
Suzi004 authored and levithomason committed Dec 8, 2019
1 parent 8111551 commit 9a375ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Menu } from 'semantic-ui-react'

export default class MenuExampleHeaderVertical extends Component {
state = {}
handleItemClick = (name) => this.setState({ activeItem: name })
handleItemClick = (e, { name }) => this.setState({ activeItem: name });

render() {
const { activeItem } = this.state
Expand Down

0 comments on commit 9a375ee

Please sign in to comment.