winduum 2.0.0-next.15 → 2.0.0-next.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@ export const showDetails = async (element, options = {}) => {
|
|
|
19
19
|
|
|
20
20
|
const details = element.closest(options.selector)
|
|
21
21
|
const { down } = await import('slide-element')
|
|
22
|
-
const content =
|
|
22
|
+
const content = details.querySelector(options.summarySelector).nextElementSibling
|
|
23
23
|
|
|
24
24
|
details._isHiding = false
|
|
25
25
|
details.open = true
|
|
@@ -42,7 +42,7 @@ export const closeDetails = async (element, options = {}) => {
|
|
|
42
42
|
|
|
43
43
|
const details = element.closest(options.selector)
|
|
44
44
|
const { up } = await import('slide-element')
|
|
45
|
-
const content =
|
|
45
|
+
const content = details.querySelector(options.summarySelector).nextElementSibling
|
|
46
46
|
|
|
47
47
|
details._isHiding = true
|
|
48
48
|
|