Skip to content

Commit

Permalink
Update ScrollBlocker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroencoumans committed Apr 6, 2015
2 parents c29e6fa + f4633ff commit 2fddcf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ScrollBlocker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** @jsx React.DOM */
var React = require('react');
var assign = require('react/lib/Object.assign');

var blockerStyle = {
pointerEvents: 'none'
Expand All @@ -23,7 +24,7 @@ var ScrollBlocker = React.createClass({displayName: "ScrollBlocker",
var { style, active, ...other } = this.props;

return (
React.createElement("div", React.__spread({}, other, {style: active && style}),
React.createElement("div", React.__spread({}, other, {style: assign({}, style, active && blockerStyle)}),
this.props.children
)
);
Expand Down

0 comments on commit 2fddcf4

Please sign in to comment.