10000 fixed the issue with crash after removing element · zjsxfly/react-sortablejs@adb94a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit adb94a1

Browse files
eljustocheton
authored andcommitted
fixed the issue with crash after removing element
1 parent 5640512 commit adb94a1

File tree

6 files changed

+174
-38
lines changed

6 files changed

+174
-38
lines changed

dist/react-sortable.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! react-sortablejs v1.3.1 | (c) 2017 Cheton Wu <cheton@gmail.com> | MIT | https://github.com/cheton/react-sortable */
1+
/*! react-sortablejs v1.3.2 | (c) 2017 Cheton Wu <cheton@gmail.com> | MIT | https://github.com/cheton/react-sortable */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory(require("react"), require("react-dom"), require("sortablejs"));
@@ -12,41 +12,41 @@
1212
return /******/ (function(modules) { // webpackBootstrap
1313
/******/ // The module cache
1414
/******/ var installedModules = {};
15-
15+
/******/
1616
/******/ // The require function
1717
/******/ function __webpack_require__(moduleId) {
18-
18+
/******/
1919
/******/ // Check if module is in cache
2020
/******/ if(installedModules[moduleId])
2121
/******/ return installedModules[moduleId].exports;
22-
22+
/******/
2323
/******/ // Create a new module (and put it into the cache)
2424
/******/ var module = installedModules[moduleId] = {
2525
/******/ i: moduleId,
2626
/******/ l: false,
2727
/******/ exports: {}
2828
/******/ };
29-
29+
/******/
3030
/******/ // Execute the module function
3131
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
32-
32+
/******/
3333
/******/ // Flag the module as loaded
3434
/******/ module.l = true;
35-
35+
/******/
3636
/******/ // Return the exports of the module
3737
/******/ return module.exports;
3838
/******/ }
39-
40-
39+
/******/
40+
/******/
4141
/******/ // expose the modules object (__webpack_modules__)
4242
/******/ __webpack_require__.m = modules;
43-
43+
/******/
4444
/******/ // expose the module cache
4545
/******/ __webpack_require__.c = installedModules;
46-
46+
/******/
4747
/******/ // identity function for calling harmony imports with the correct context
4848
/******/ __webpack_require__.i = function(value) { return value; };
49-
49+
/******/
5050
/******/ // define getter function for harmony exports
5151
/******/ __webpack_require__.d = function(exports, name, getter) {
5252
/******/ if(!__webpack_require__.o(exports, name)) {
@@ -57,7 +57,7 @@ return /******/ (function(modules) { // webpackBootstrap
5757
/******/ });
5858
/******/ }
5959
/******/ };
60-
60+
/******/
6161
/******/ // getDefaultExport function for compatibility with non-harmony modules
6262
/******/ __webpack_require__.n = function(module) {
6363
/******/ var getter = module && module.__esModule ?
@@ -66,13 +66,13 @@ return /******/ (function(modules) { // webpackBootstrap
6666
/******/ __webpack_require__.d(getter, 'a', getter);
6767
/******/ return getter;
6868
/******/ };
69-
69+
/******/
7070
/******/ // Object.prototype.hasOwnProperty.call
7171
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
72-
72+
/******/
7373
/******/ // __webpack_public_path__
7474
/******/ __webpack_require__.p = "";
75-
75+
/******/
7676
/******/ // Load entry module and return exports
7777
/******/ return __webpack_require__(__webpack_require__.s = 3);
7878
/******/ })
@@ -178,8 +178,8 @@ module.exports = (_temp2 = _class = function (_React$Component) {
178178
var remote = store.activeComponent;
179179
var remoteItems = remote.sortable.toArray();
180180

181-
evt.from.insertBefore(evt.item, store.nextSibling);
182-
181+
var referenceNode = store.nextSibling && store.nextSibling.parentNode !== null ? store.nextSibling : null;
182+
evt.from.insertBefore(evt.item, referenceNode);
183183
if (remote !== _this2) {
184184
var remoteOptions = remote.props.options || {};
185185

dist/react-sortable.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
0