We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85e11a7 commit 9019c38Copy full SHA for 9019c38
src/ContextMenuTrigger.js
@@ -126,7 +126,9 @@ export default class ContextMenuTrigger extends Component {
126
id: this.props.id
127
};
128
if (data && (typeof data.then === 'function')) {
129
- // it's promise
+ // it's promise, the event needs to be persisted, so that React
130
+ // doesn't reuse the event object while the data function resolves
131
+ event.persist();
132
data.then((resp) => {
133
showMenuConfig.data = assign({}, resp, {
134
target: event.target
0 commit comments