@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.umd.js CHANGED
@@ -1120,7 +1120,10 @@
1120
1120
  this._listRoot.removeAttribute('aria-activedescendant');
1121
1121
  }
1122
1122
  // Check if any items have custom components
1123
- const hasCustomComponents = this._items.some(item => typeof item === 'object' && item !== null && 'optionComponent' in item);
1123
+ const hasCustomComponents = this._items.some(item => typeof item === 'object' &&
1124
+ item !== null &&
1125
+ Object.prototype.hasOwnProperty.call(item, 'optionComponent') &&
1126
+ typeof item.optionComponent === 'function');
1124
1127
  // Use unified renderer if we have custom components
1125
1128
  if (hasCustomComponents && this._unifiedRenderer) {
1126
1129
  this._listRoot.replaceChildren(); // Clear existing content