mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
cs
This commit is contained in:
@@ -170,8 +170,12 @@
|
||||
Livewire.hook('request', ({ payload, fail }) => {
|
||||
fail(({ status, preventDefault }) => {
|
||||
if (JSON.parse(payload).components.length === 1) {
|
||||
for (const component of JSON.parse(payload).components) {
|
||||
if (JSON.parse(component.snapshot).data.isFilamentNotificationsComponent) {
|
||||
for (const component of JSON.parse(payload)
|
||||
.components) {
|
||||
if (
|
||||
JSON.parse(component.snapshot).data
|
||||
.isFilamentNotificationsComponent
|
||||
) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,8 @@ export default (Alpine) => {
|
||||
|
||||
const { item: draggedNode, to: parentNode, newIndex } = event
|
||||
const draggableSelector = this.options.draggable
|
||||
const previousNode = parentNode.querySelectorAll(draggableSelector)[newIndex - 1]
|
||||
const previousNode =
|
||||
parentNode.querySelectorAll(draggableSelector)[newIndex - 1]
|
||||
|
||||
if (previousNode) {
|
||||
parentNode.insertBefore(
|
||||
|
||||
Reference in New Issue
Block a user