react-sortable-hoc
Advanced tools
Comparing version 0.6.7 to 0.6.8
Changelog | ||
------------ | ||
### 0.6.8 | ||
Update react and react-dom peerdependency requirements for React 16+ [#283](https://github.com/clauderic/react-sortable-hoc/pull/283). Thanks [@jnsdls](https://github.com/jnsdls)! | ||
### 0.6.7 | ||
@@ -4,0 +7,0 @@ Fixes issues with Jest Snapshot testing trying to serialize the `window` object and running out of memory [#249](https://github.com/clauderic/react-sortable-hoc/issues/249). Thanks [@cameronmcefee](https://github.com/cameronmcefee)! |
@@ -36,3 +36,3 @@ import React, {Component} from 'react'; | ||
onSortEnd = ({oldIndex, newIndex}) => { | ||
let {items} = this.state; | ||
const {items} = this.state; | ||
@@ -44,3 +44,3 @@ this.setState({ | ||
render() { | ||
let {items} = this.state; | ||
const {items} = this.state; | ||
@@ -47,0 +47,0 @@ return <SortableList items={items} onSortEnd={this.onSortEnd} useDragHandle={true} />; |
@@ -36,3 +36,3 @@ import React, {Component} from 'react'; | ||
onSortEnd = ({oldIndex, newIndex}) => { | ||
let {items} = this.state; | ||
const {items} = this.state; | ||
@@ -44,3 +44,3 @@ this.setState({ | ||
render() { | ||
let {items} = this.state; | ||
const {items} = this.state; | ||
@@ -47,0 +47,0 @@ return <SortableList items={items} onSortEnd={this.onSortEnd} />; |
@@ -16,3 +16,3 @@ import React, {Component} from 'react'; | ||
render() { | ||
let {items} = this.props; | ||
const {items} = this.props; | ||
@@ -26,3 +26,3 @@ return ( | ||
rowRenderer={({index}) => { | ||
let {value} = items[index]; | ||
const {value} = items[index]; | ||
return <SortableItem index={index} value={value} />; | ||
@@ -58,3 +58,3 @@ }} | ||
if (oldIndex !== newIndex) { | ||
let {items} = this.state; | ||
const {items} = this.state; | ||
@@ -66,3 +66,3 @@ this.setState({ | ||
// We need to inform React Virtualized that the items have changed heights | ||
let instance = this.SortableList.getWrappedInstance(); | ||
const instance = this.SortableList.getWrappedInstance(); | ||
@@ -74,3 +74,3 @@ instance.List.recomputeRowHeights(); | ||
render() { | ||
let {items} = this.state; | ||
const {items} = this.state; | ||
@@ -77,0 +77,0 @@ return ( |
{ | ||
"name": "react-sortable-hoc", | ||
"version": "0.6.7", | ||
"version": "0.6.8", | ||
"description": "Set of higher-order components to turn any list into a sortable, touch-friendly, animated list", | ||
@@ -55,4 +55,4 @@ "author": { | ||
"peerDependencies": { | ||
"react": "^0.14.0 || ^15.0.0", | ||
"react-dom": "^0.14.0 || ^15.0.0" | ||
"react": "^0.14.0 || ^15.0.0 || ^16.0.0", | ||
"react-dom": "^0.14.0 || ^15.0.0 || ^16.0.0" | ||
}, | ||
@@ -59,0 +59,0 @@ "devDependencies": { |
@@ -12,2 +12,4 @@ # React Sortable (HOC) | ||
<a href="https://app.codesponsor.io/link/oN9PDWZz8fQcbh9sxpDEUvD5/clauderic/react-sortable-hoc" rel="nofollow"><img src="https://app.codesponsor.io/embed/oN9PDWZz8fQcbh9sxpDEUvD5/clauderic/react-sortable-hoc.svg" style="width: 888px; height: 68px;" alt="Sponsor" /></a> | ||
Features | ||
@@ -14,0 +16,0 @@ --------------- |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
1238810
24
10410
188