@smilodon/core 1.2.2 → 1.2.3

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.js CHANGED
@@ -1114,7 +1114,10 @@ class NativeSelectElement extends HTMLElement {
1114
1114
  this._listRoot.removeAttribute('aria-activedescendant');
1115
1115
  }
1116
1116
  // Check if any items have custom components
1117
- const hasCustomComponents = this._items.some(item => typeof item === 'object' && item !== null && 'optionComponent' in item);
1117
+ const hasCustomComponents = this._items.some(item => typeof item === 'object' &&
1118
+ item !== null &&
1119
+ Object.prototype.hasOwnProperty.call(item, 'optionComponent') &&
1120
+ typeof item.optionComponent === 'function');
1118
1121
  // Use unified renderer if we have custom components
1119
1122
  if (hasCustomComponents && this._unifiedRenderer) {
1120
1123
  this._listRoot.replaceChildren(); // Clear existing content