From e0d647fd953bf221cc92dafeaa54677ddeb12ab0 Mon Sep 17 00:00:00 2001 From: Michael Braun Date: Sat, 4 Oct 2025 21:16:01 +0200 Subject: [PATCH] Make last li in lo fire moveItem events too. --- client/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/index.js b/client/index.js index de5ae23..3b8e53a 100644 --- a/client/index.js +++ b/client/index.js @@ -907,7 +907,7 @@ micro.OL = class extends HTMLOListElement { // Prevent scrolling and text selection event.preventDefault(); - this._from = this._li.nextElementSibling; + this._from = this._li.nextElementSibling ?? this.li; this._to = null; this._over = this._li; this._li.classList.add("micro-ol-li-moving");