@melt-ui/svelte
Advanced tools
Comparing version 0.47.3 to 0.47.4
@@ -1,2 +0,2 @@ | ||
import { addMeltEventListener, builder, createElHelpers, effect, executeCallbacks, generateId, getElementByMeltId, isHTMLElement, isHidden, isLetter, kbd, last, overridable, styleToString, } from '../../internal/helpers'; | ||
import { addMeltEventListener, builder, createElHelpers, executeCallbacks, generateId, getElementByMeltId, isHTMLElement, isHidden, isLetter, kbd, last, overridable, styleToString, } from '../../internal/helpers'; | ||
import { derived, writable } from 'svelte/store'; | ||
@@ -213,3 +213,3 @@ const defaults = { | ||
isKeydown = false; | ||
}), addMeltEventListener(node, 'focus', (e) => { | ||
}), addMeltEventListener(node, 'focus', () => { | ||
lastFocusedId.update((p) => node.getAttribute('data-id') ?? p); | ||
@@ -254,7 +254,2 @@ })); | ||
items = Array.from(rootEl.querySelectorAll('[role="treeitem"]')).filter((el) => !isHidden(el)); | ||
/** | ||
* Filter out all elements that have parents that are not expanded. | ||
*/ | ||
const closedParents = Array.from(rootEl.querySelectorAll('[aria-expanded="false"]')); | ||
items = items.filter((item) => !closedParents.some((parent) => item !== parent && parent.contains(item))); | ||
return items; | ||
@@ -261,0 +256,0 @@ } |
{ | ||
"name": "@melt-ui/svelte", | ||
"version": "0.47.3", | ||
"version": "0.47.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "exports": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
614478
14265