Socket
Socket
Sign inDemoInstall

react-sortable-hoc

Package Overview
Dependencies
53
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.10 to 0.4.11

node_modules_/babel-cli/node_modules/chokidar/node_modules/fsevents/node_modules/console-control-strings/README.md~

3

CHANGELOG.md
Changelog
------------
### 0.4.11
Fix: This release fixes some issues caused by the `onSortEnd` callback being invoked before `setState` [#82](https://github.com/clauderic/react-sortable-hoc/issues/82).
### 0.4.10

@@ -4,0 +7,0 @@ Fix: This version fixes issues with nested `SortableContainer` elements using drag handles from also dragging their parent [#112](https://github.com/clauderic/react-sortable-hoc/issues/112), #127(https://github.com/clauderic/react-sortable-hoc/pull/127). Thanks []@DeadHeadRussell](https://github.com/DeadHeadRussell)!

16

dist/commonjs/SortableContainer/index.js

@@ -304,10 +304,2 @@ 'use strict';

if (typeof onSortEnd === 'function') {
onSortEnd({
oldIndex: _this.index,
newIndex: _this.newIndex,
collection: collection
}, e);
}
// Stop autoscroll

@@ -325,2 +317,10 @@ clearInterval(_this.autoscrollInterval);

if (typeof onSortEnd === 'function') {
onSortEnd({
oldIndex: _this.index,
newIndex: _this.newIndex,
collection: collection
}, e);
}
_this._touched = false;

@@ -327,0 +327,0 @@ };

@@ -277,10 +277,2 @@ import _extends from 'babel-runtime/helpers/extends';

if (typeof onSortEnd === 'function') {
onSortEnd({
oldIndex: _this.index,
newIndex: _this.newIndex,
collection: collection
}, e);
}
// Stop autoscroll

@@ -298,2 +290,10 @@ clearInterval(_this.autoscrollInterval);

if (typeof onSortEnd === 'function') {
onSortEnd({
oldIndex: _this.index,
newIndex: _this.newIndex,
collection: collection
}, e);
}
_this._touched = false;

@@ -300,0 +300,0 @@ };

{
"name": "react-sortable-hoc",
"version": "0.4.10",
"version": "0.4.11",
"description": "Set of higher-order components to turn any list into a sortable, touch-friendly, animated list",

@@ -5,0 +5,0 @@ "author": {

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc