Comparing version 1.0.20 to 1.0.21
@@ -146,5 +146,6 @@ 'use strict'; | ||
ref, | ||
role: props.role + 'item', | ||
style: props.style, | ||
}), | ||
[props.style, ref] | ||
[props.style, props.role, ref] | ||
); | ||
@@ -371,2 +372,3 @@ return _react.default.createElement(props.as, elementProps, props.children); | ||
as: itemAs, | ||
role, | ||
resizeObserver: this.resizeObserver, | ||
@@ -418,2 +420,3 @@ observerRef: this.setItemRef(index), | ||
as: itemAs, | ||
role, | ||
resizeObserver: this.resizeObserver, | ||
@@ -420,0 +423,0 @@ observerRef: this.setItemRef(index), |
@@ -101,5 +101,6 @@ function _extends() { | ||
ref, | ||
role: props.role + 'item', | ||
style: props.style, | ||
}), | ||
[props.style, ref] | ||
[props.style, props.role, ref] | ||
); | ||
@@ -326,2 +327,3 @@ return React.createElement(props.as, elementProps, props.children); | ||
as: itemAs, | ||
role, | ||
resizeObserver: this.resizeObserver, | ||
@@ -373,2 +375,3 @@ observerRef: this.setItemRef(index), | ||
as: itemAs, | ||
role, | ||
resizeObserver: this.resizeObserver, | ||
@@ -375,0 +378,0 @@ observerRef: this.setItemRef(index), |
{ | ||
"name": "masonic", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "A React virtualized masonry component for the window based on the original by Brian Vaughn", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
@@ -69,3 +69,6 @@ import React, {useCallback, useMemo, useEffect, useRef} from 'react' | ||
) | ||
const elementProps = useMemo(() => ({ref, style: props.style}), [props.style, ref]) | ||
const elementProps = useMemo( | ||
() => ({ref, role: `${props.role}item`, style: props.style}), | ||
[props.style, props.role, ref] | ||
) | ||
return React.createElement(props.as, elementProps, props.children) | ||
@@ -286,2 +289,3 @@ } | ||
as: itemAs, | ||
role, | ||
resizeObserver: this.resizeObserver, | ||
@@ -329,2 +333,3 @@ observerRef: this.setItemRef(index), | ||
as: itemAs, | ||
role, | ||
resizeObserver: this.resizeObserver, | ||
@@ -331,0 +336,0 @@ observerRef: this.setItemRef(index), |
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
143334
4356