Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit 84f19bb

Browse files
Update README.md NOTICE warning (#322)
1 parent 13e3271 commit 84f19bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,14 @@ function handleClick(e, data) {
6060
function 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>

0 commit comments

Comments
 (0)