File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 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- dis play: 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 >
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments