diff --git a/README.md b/README.md index 6d441937..78eb80af 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,6 @@ class App extends React.Element { defaultPosition={{x: 0, y: 0}} position={null} grid={[25, 25]} - zIndex={100} onStart={this.handleStart} onDrag={this.handleDrag} onStop={this.handleStop}> diff --git a/example/example.js b/example/example.js index 229897aa..8b9f10b7 100644 --- a/example/example.js +++ b/example/example.js @@ -67,7 +67,7 @@ var App = React.createClass({

Demo Source

- +
I can be dragged anywhere
@@ -103,7 +103,7 @@ var App = React.createClass({
I snap to a 50 x 50 grid
- +
I can only be moved 100px in any direction.
@@ -137,7 +137,7 @@ var App = React.createClass({ {"I have a default position of {x: 25, y: 25}, so I'm slightly offset."}
- +
My position can be changed programmatically.
I have a drag handler to sync state. @@ -149,7 +149,7 @@ var App = React.createClass({

- +
My position can be changed programmatically.
I have a dragStop handler to sync state. diff --git a/specs/draggable.spec.jsx b/specs/draggable.spec.jsx index fb89d6c2..8d59293a 100644 --- a/specs/draggable.spec.jsx +++ b/specs/draggable.spec.jsx @@ -42,7 +42,6 @@ describe('react-draggable', function () { assert(drag.props.handle === null); assert(drag.props.cancel === null); assert(drag.props.bounds == false); - assert(isNaN(drag.props.zIndex) === true); assert(typeof drag.props.onStart === 'function'); assert(typeof drag.props.onDrag === 'function'); assert(typeof drag.props.onStop === 'function'); @@ -115,7 +114,6 @@ describe('react-draggable', function () { handle=".handle" cancel=".cancel" grid={[10, 10]} - zIndex={1000} onStart={handleStart} onDrag={handleDrag} onStop={handleStop}> @@ -130,7 +128,6 @@ describe('react-draggable', function () { assert(drag.props.handle === '.handle'); assert(drag.props.cancel === '.cancel'); assert(_.isEqual(drag.props.grid, [10, 10])); - assert(drag.props.zIndex === 1000); assert(drag.props.onStart === handleStart); assert(drag.props.onDrag === handleDrag); assert(drag.props.onStop === handleStop); @@ -626,8 +623,8 @@ describe('react-draggable', function () { assert(data.deltaY === 100); } drag = TestUtils.renderIntoDocument( - -
+ +
);