@lumx/react 3.5.0 → 3.5.1

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/index.js CHANGED
@@ -12265,8 +12265,9 @@ TextField.className = CLASSNAME$1d;
12265
12265
  TextField.defaultProps = DEFAULT_PROPS$_;
12266
12266
 
12267
12267
  function getState(img, event) {
12268
- // Error event occurred.
12269
- if ((event === null || event === void 0 ? void 0 : event.type) === 'error') {
12268
+ // Error event occurred or image has no source.
12269
+ if ((event === null || event === void 0 ? void 0 : event.type) === 'error' || img !== null && img !== void 0 && img.complete && !img.getAttribute('src')) {
12270
+ console.log('HAS ERROR');
12270
12271
  return 'hasError';
12271
12272
  }
12272
12273
  // Image is undefined or incomplete.