@damienmortini/damdom-gallery
Advanced tools
Comparing version 0.0.11 to 0.0.12
12
index.js
@@ -54,3 +54,3 @@ import style from './index.css' assert { type: 'css' } | ||
container.querySelector('.highlightbutton').addEventListener('click', highlightButtonClick) | ||
node.slot = slotName | ||
node.slot = this.#highlighted === node ? 'highlight' : slotName | ||
this.#elementSlotMap.set(node, slotName) | ||
@@ -68,6 +68,8 @@ this.#gridContainer.appendChild(container) | ||
} | ||
mutationCallback([{ | ||
addedNodes: this.children, | ||
removedNodes: [], | ||
}]) | ||
mutationCallback([ | ||
{ | ||
addedNodes: this.children, | ||
removedNodes: [], | ||
}, | ||
]) | ||
const observer = new MutationObserver(mutationCallback) | ||
@@ -74,0 +76,0 @@ observer.observe(this, { childList: true }) |
{ | ||
"name": "@damienmortini/damdom-gallery", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "<damdom-gallery> custom element.", | ||
@@ -22,3 +22,3 @@ "publishConfig": { | ||
"homepage": "https://github.com/damienmortini/lib/tree/main/damdom/damdom-gallery", | ||
"gitHead": "dc4671115e2498fb36dd90fee2ec80d10a1ef29d" | ||
"gitHead": "1a51bc388269ef4f4db9a6f145832a5e20db3645" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
7856
164