mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +00:00
parent
1a0ca1b78f
commit
e5327c0903
@ -1,16 +1,7 @@
|
|||||||
diff --git a/modular/sortable.core.esm.js b/modular/sortable.core.esm.js
|
diff --git a/modular/sortable.core.esm.js b/modular/sortable.core.esm.js
|
||||||
index 93ba17509e2e8583ab241fea6845fbe714c584a2..de0651ddb5dced30d36f7d764da0dd0b441f523f 100644
|
index 8b5e49b011713c8859c669069fbe85ce53974e1d..6a0afc92787157b8a31c38cc5f67dfa526090a00 100644
|
||||||
--- a/modular/sortable.core.esm.js
|
--- a/modular/sortable.core.esm.js
|
||||||
+++ b/modular/sortable.core.esm.js
|
+++ b/modular/sortable.core.esm.js
|
||||||
@@ -1461,7 +1461,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
|
||||||
}
|
|
||||||
target = parent; // store last element
|
|
||||||
}
|
|
||||||
- /* jshint boss:true */ while (parent = parent.parentNode);
|
|
||||||
+ /* jshint boss:true */ while (parent = parent.parentNode || parent.getRootNode().host);
|
|
||||||
}
|
|
||||||
_unhideGhostForTarget();
|
|
||||||
}
|
|
||||||
@@ -1781,11 +1781,16 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
@@ -1781,11 +1781,16 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
||||||
}
|
}
|
||||||
if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
|
if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
|
||||||
@ -33,7 +24,7 @@ index 93ba17509e2e8583ab241fea6845fbe714c584a2..de0651ddb5dced30d36f7d764da0dd0b
|
|||||||
}
|
}
|
||||||
parentEl = el; // actualization
|
parentEl = el; // actualization
|
||||||
|
|
||||||
@@ -1802,7 +1807,13 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
@@ -1802,7 +1807,12 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
||||||
targetRect = getRect(target);
|
targetRect = getRect(target);
|
||||||
if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {
|
if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {
|
||||||
capture();
|
capture();
|
||||||
@ -44,11 +35,10 @@ index 93ba17509e2e8583ab241fea6845fbe714c584a2..de0651ddb5dced30d36f7d764da0dd0b
|
|||||||
+ catch(err) {
|
+ catch(err) {
|
||||||
+ return completed(false);
|
+ return completed(false);
|
||||||
+ }
|
+ }
|
||||||
+
|
|
||||||
parentEl = el; // actualization
|
parentEl = el; // actualization
|
||||||
|
|
||||||
changed();
|
changed();
|
||||||
@@ -1849,12 +1860,17 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
@@ -1849,10 +1859,15 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
||||||
_silent = true;
|
_silent = true;
|
||||||
setTimeout(_unsilent, 30);
|
setTimeout(_unsilent, 30);
|
||||||
capture();
|
capture();
|
||||||
@ -56,8 +46,6 @@ index 93ba17509e2e8583ab241fea6845fbe714c584a2..de0651ddb5dced30d36f7d764da0dd0b
|
|||||||
- el.appendChild(dragEl);
|
- el.appendChild(dragEl);
|
||||||
- } else {
|
- } else {
|
||||||
- target.parentNode.insertBefore(dragEl, after ? nextSibling : target);
|
- target.parentNode.insertBefore(dragEl, after ? nextSibling : target);
|
||||||
- }
|
|
||||||
|
|
||||||
+ try {
|
+ try {
|
||||||
+ if (after && !nextSibling) {
|
+ if (after && !nextSibling) {
|
||||||
+ el.appendChild(dragEl);
|
+ el.appendChild(dragEl);
|
||||||
@ -67,7 +55,6 @@ index 93ba17509e2e8583ab241fea6845fbe714c584a2..de0651ddb5dced30d36f7d764da0dd0b
|
|||||||
+ }
|
+ }
|
||||||
+ catch(err) {
|
+ catch(err) {
|
||||||
+ return completed(false);
|
+ return completed(false);
|
||||||
+ }
|
}
|
||||||
|
|
||||||
// Undo chrome's scroll adjustment (has no effect on other browsers)
|
// Undo chrome's scroll adjustment (has no effect on other browsers)
|
||||||
if (scrolledPastTop) {
|
|
||||||
scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);
|
|
@ -255,7 +255,7 @@
|
|||||||
"clean-css": "5.3.3",
|
"clean-css": "5.3.3",
|
||||||
"@lit/reactive-element": "1.6.3",
|
"@lit/reactive-element": "1.6.3",
|
||||||
"@fullcalendar/daygrid": "6.1.15",
|
"@fullcalendar/daygrid": "6.1.15",
|
||||||
"sortablejs@1.15.2": "patch:sortablejs@npm%3A1.15.2#~/.yarn/patches/sortablejs-npm-1.15.2-73347ae85a.patch",
|
"sortablejs@1.15.3": "patch:sortablejs@npm%3A1.15.3#~/.yarn/patches/sortablejs-npm-1.15.3-3235a8f83b.patch",
|
||||||
"leaflet-draw@1.0.4": "patch:leaflet-draw@npm%3A1.0.4#./.yarn/patches/leaflet-draw-npm-1.0.4-0ca0ebcf65.patch"
|
"leaflet-draw@1.0.4": "patch:leaflet-draw@npm%3A1.0.4#./.yarn/patches/leaflet-draw-npm-1.0.4-0ca0ebcf65.patch"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@4.4.1"
|
"packageManager": "yarn@4.4.1"
|
||||||
|
@ -13207,6 +13207,13 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"sortablejs@patch:sortablejs@npm%3A1.15.3#~/.yarn/patches/sortablejs-npm-1.15.3-3235a8f83b.patch":
|
||||||
|
version: 1.15.3
|
||||||
|
resolution: "sortablejs@patch:sortablejs@npm%3A1.15.3#~/.yarn/patches/sortablejs-npm-1.15.3-3235a8f83b.patch::version=1.15.3&hash=fba0ad"
|
||||||
|
checksum: 10/249f4cfd2b4a811f4e1505b25d4d67a97521afabdabd2f5482f985da20785d995c2899d442ad79075c7ba547e477aef81f09b0028f12d1de468cbca4f2b8c043
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"source-list-map@npm:^2.0.1":
|
"source-list-map@npm:^2.0.1":
|
||||||
version: 2.0.1
|
version: 2.0.1
|
||||||
resolution: "source-list-map@npm:2.0.1"
|
resolution: "source-list-map@npm:2.0.1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user