@smilodon/core 1.2.2 → 1.3.0
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/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.umd.js +4 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1116,7 +1116,10 @@ class NativeSelectElement extends HTMLElement {
|
|
|
1116
1116
|
this._listRoot.removeAttribute('aria-activedescendant');
|
|
1117
1117
|
}
|
|
1118
1118
|
// Check if any items have custom components
|
|
1119
|
-
const hasCustomComponents = this._items.some(item => typeof item === 'object' &&
|
|
1119
|
+
const hasCustomComponents = this._items.some(item => typeof item === 'object' &&
|
|
1120
|
+
item !== null &&
|
|
1121
|
+
Object.prototype.hasOwnProperty.call(item, 'optionComponent') &&
|
|
1122
|
+
typeof item.optionComponent === 'function');
|
|
1120
1123
|
// Use unified renderer if we have custom components
|
|
1121
1124
|
if (hasCustomComponents && this._unifiedRenderer) {
|
|
1122
1125
|
this._listRoot.replaceChildren(); // Clear existing content
|