Skip to content

Commit 261ce2a

Browse files
Merge pull request #152 from opencomponents/pass-correct-id
pass correct id to render
2 parents 306700b + d2467fc commit 261ce2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oc-client-browser",
3-
"version": "2.1.8",
3+
"version": "2.1.9",
44
"description": "OC browser client",
55
"main": "index.js",
66
"types": "index.d.ts",

src/oc-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export function createOc(oc) {
246246
renderedComponents[dataName].baseUrl = data.baseUrl;
247247
}
248248
data.element = component;
249-
oc.events.fire("oc:rendered", data);
249+
oc.events.fire("oc:rendered", { ...data, id: data.ocId });
250250
}
251251

252252
callback();

0 commit comments

Comments
 (0)