Skip to content Skip to sidebar Skip to footer

Since Updating React-dom And React-router-dom Packages: Excessive Li Onclick Behavior

I've inherited a react/node/prismic application where we need to update the prismic-reactjs package, which resulted in needing to update a few others- in total, we changed: prismic

Solution 1:

Update your onClick in PersonMapStory to access the event object:

<button className="person-map-story-other-button" onClick={e =>this.setActivePerson(e, person.name)}>

and change the setActivePerson(name) function in PersonMapStory:

setActivePerson(event, name) {
    this.props.setActivePerson(name)
    event.stopPropagation()
}

Post a Comment for "Since Updating React-dom And React-router-dom Packages: Excessive Li Onclick Behavior"