@forter/helpers
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
@@ -15,6 +15,6 @@ /** | ||
isSlotted(slotName) { | ||
const selector = slotName ? `slot [name='${slotName}']` : 'slot'; | ||
const selector = slotName ? `slot[name='${slotName}']` : 'slot'; | ||
const slot = this.shadowRoot && this.shadowRoot.querySelector(selector); | ||
if (!slot) return false; | ||
return !!slot.assignedNodes().length; | ||
return slot.assignedNodes().length; | ||
} | ||
@@ -21,0 +21,0 @@ |
{ | ||
"name": "@forter/helpers", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"description": "Helpers for Forter Components", | ||
@@ -54,3 +54,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "f8eae8782618154c7688b8c84892ddff96d1f82a" | ||
"gitHead": "f437218a1c8b8a6666ce17cf8e690e9b081bd0c8" | ||
} |
@@ -15,7 +15,7 @@ /** | ||
isSlotted(slotName) { | ||
const selector = slotName ? `slot [name='${slotName}']` : 'slot'; | ||
const selector = slotName ? `slot[name='${slotName}']` : 'slot'; | ||
const slot = this.shadowRoot && this.shadowRoot.querySelector(selector); | ||
if (!slot) return false; | ||
return !!slot.assignedNodes().length; | ||
return slot.assignedNodes().length; | ||
} | ||
}; |
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
24792