@solid-primitives/selection
Advanced tools
+1
-1
@@ -15,3 +15,3 @@ import { createEffect, createSignal, onCleanup } from "solid-js"; | ||
| const getRangePos = (container, offset, texts) => { | ||
| const index = texts.indexOf(container); | ||
| const index = texts.findIndex(text => text === container || text.parentElement === container); | ||
| return index === -1 ? NaN : texts.slice(0, index).reduce(addNodeLength, 0) + offset; | ||
@@ -18,0 +18,0 @@ }; |
+1
-1
| { | ||
| "name": "@solid-primitives/selection", | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", | ||
| "description": "selection primitive.", | ||
@@ -5,0 +5,0 @@ "author": "Alex Lohr <alex.lohr@logmein.com>", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10195
0.54%0
-100%