File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -60,12 +60,14 @@ function handleClick(e, data) {
6060function MyApp () {
6161 return (
6262 < div>
63+ {/* NOTICE: id must be unique between EVERY <ContextMenuTrigger> and <ContextMenu> pair */ }
64+ {/* NOTICE: inside the pair, <ContextMenuTrigger> and <ContextMenu> must have the same id */ }
6365
64- < ContextMenuTrigger id= " some_unique_identifier " > { /* NOTICE: id must be unique for EVERY instance */ }
66+ < ContextMenuTrigger id= " same_unique_identifier " >
6567 < div className= " well" > Right click to see the menu< / div>
6668 < / ContextMenuTrigger>
6769
68- < ContextMenu id= " some_unique_identifier " >
70+ < ContextMenu id= " same_unique_identifier " >
6971 < MenuItem data= {{foo: ' bar' }} onClick= {this .handleClick }>
7072 ContextMenu Item 1
7173 < / MenuItem>
You can’t perform that action at this time.
0 commit comments