Skip to content

Commit 319106f

Browse files
committed
Updating example
1 parent 42b94c0 commit 319106f

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

example/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@
1717
border: 1px solid #999;
1818
border-radius: 3px;
1919
display: block;
20-
margin-bottom: 10px;;
20+
margin-bottom: 10px;
2121
padding: 3px 5px;
2222
}
2323

2424
.box {
2525
background: #fff;
2626
border: 1px solid #999;
27-
border-radius: 3px;;
28-
display: inline-block;
27+
border-radius: 3px;
2928
width: 150px;
3029
height: 150px;
3130
margin: 10px;
3231
padding: 10px;
32+
float: left;
3333
}
3434
</style>
3535
</head>

example/main.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ var App = React.createClass({
5252
<div>You must click my handle to drag me</div>
5353
</div>
5454
</Draggable>
55+
<Draggable
56+
cancel="strong"
57+
onStart={this.handleStart}
58+
onDrag={this.handleDrag}
59+
onStop={this.handleStop}>
60+
<div className="box">
61+
<strong>Can't drag from here</strong>
62+
<div>Dragging from here works fine</div>
63+
</div>
64+
</Draggable>
5565
</div>
5666
);
5767
}

0 commit comments

Comments
 (0)