Skip to content

Commit 2d24a7e

Browse files
committed
Fix cio js client events not firing
1 parent 94ad741 commit 2d24a7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/helpers.ts

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ export const getCioClient = (apiKey?: string, cioJsClientOptions?: ConstructorCl
7171
sendTrackingEvents: true,
7272
version: `cio-ui-autocomplete-${version}`,
7373
...cioJsClientOptions,
74+
// Remove `as any` once the EventDispatcher option type is updated in client javascript SDK (https://github.com/Constructor-io/constructorio-client-javascript/pull/373)
75+
eventDispatcher: { waitForBeacon: false } as any,
7476
});
7577

7678
// eslint-disable-next-line no-console

0 commit comments

Comments
 (0)