@iobroker/adapter-react-v5 4.12.0 → 4.12.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/Components/Icon.d.ts +1 -0
- package/Components/Icon.js +2 -2
- package/README.md +1 -1
- package/package.json +1 -1
package/Components/Icon.d.ts
CHANGED
package/Components/Icon.js
CHANGED
|
@@ -113,12 +113,12 @@ const Icon = (props) => {
|
|
|
113
113
|
if (src.startsWith('./')) {
|
|
114
114
|
src = src.substring(2);
|
|
115
115
|
}
|
|
116
|
-
return react_1.default.createElement("img", { title: props.title || undefined, style: props.style || {}, className: Utils_1.default.clsx(props.className, 'iconOwn'), src: `https://remote-files.iobroker.in${window.location.pathname}${src}`, alt: props.alt || undefined, onError: e => {
|
|
116
|
+
return react_1.default.createElement("img", { title: props.title || undefined, style: props.style || {}, className: Utils_1.default.clsx(props.className, 'iconOwn'), src: `https://remote-files.iobroker.in${window.location.pathname}${src}`, alt: props.alt || undefined, ref: props.ref, onError: e => {
|
|
117
117
|
// analyse error
|
|
118
118
|
props.onError && props.onError(e);
|
|
119
119
|
} });
|
|
120
120
|
}
|
|
121
|
-
return react_1.default.createElement("img", { title: props.title || undefined, style: props.style || {}, className: Utils_1.default.clsx(props.className, 'iconOwn'), src: props.src, alt: props.alt || undefined, onError: props.onError });
|
|
121
|
+
return react_1.default.createElement("img", { title: props.title || undefined, style: props.style || {}, className: Utils_1.default.clsx(props.className, 'iconOwn'), src: props.src, alt: props.alt || undefined, ref: props.ref, onError: props.onError });
|
|
122
122
|
}
|
|
123
123
|
return props.src;
|
|
124
124
|
}
|
package/README.md
CHANGED