Skip to content

Commit 5ffada1

Browse files
committed
Update PropTypesRenderer.ts
1 parent a4bbee5 commit 5ffada1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/cli/src/scripts/create-wrappers/PropTypesRenderer.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ export class PropTypesRenderer extends AbstractRenderer {
114114
descriptionParts.push(` * @deprecated`);
115115
}
116116
}
117-
if (event._ui5Bubbles || event._ui5Cancelable) {
117+
if (
118+
Object.prototype.hasOwnProperty.call(event, '_ui5Bubbles') ||
119+
Object.prototype.hasOwnProperty.call(event, '_ui5Cancelable')
120+
) {
118121
descriptionParts.push(` *`);
119122
descriptionParts.push(`* | cancelable | bubbles |`);
120123
descriptionParts.push(`* | :--------: | :-----: |`);

0 commit comments

Comments
 (0)