react-photostory
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -192,3 +192,6 @@ import React, { Component, PropTypes } from 'react' | ||
ref: (ref) => (self[`imageRef${index}`] = ref), | ||
attributes: {'data-index': index}, | ||
attributes: { | ||
...child.props.attributes, | ||
'data-index': index | ||
}, | ||
lazyLoad: renderFirst ? index !== initialIndex : true | ||
@@ -195,0 +198,0 @@ })) |
@@ -7,2 +7,4 @@ 'use strict'; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
@@ -276,3 +278,5 @@ | ||
}, | ||
attributes: { 'data-index': index }, | ||
attributes: _extends({}, child.props.attributes, { | ||
'data-index': index | ||
}), | ||
lazyLoad: renderFirst ? index !== initialIndex : true | ||
@@ -279,0 +283,0 @@ }); |
@@ -88,3 +88,3 @@ { | ||
}, | ||
"version": "0.5.1" | ||
"version": "0.5.2" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27684
588