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.
2 parents c4d2609 + 88277f6 commit 7580dc0Copy full SHA for 7580dc0
src/ContextMenuTrigger.js
@@ -114,16 +114,20 @@ export default class ContextMenuTrigger extends Component {
114
let showMenuConfig = {
115
position: { x, y },
116
target: this.elem,
117
- id: this.props.id,
118
- data
+ id: this.props.id
119
};
120
if (data && (typeof data.then === 'function')) {
121
// it's promise
122
data.then((resp) => {
123
- showMenuConfig.data = resp;
+ showMenuConfig.data = assign({}, resp, {
+ target: event.target
124
+ });
125
showMenu(showMenuConfig);
126
});
127
} else {
128
+ showMenuConfig.data = assign({}, data, {
129
130
131
132
}
133
0 commit comments