MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / handleClick

Function handleClick

packages/feedback/src/core/integration.ts:293–305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

291
292 let dialog: ReturnType<FeedbackModalIntegration['createDialog']> | null = null;
293 const handleClick = async (): Promise<void> => {
294 if (!dialog) {
295 dialog = await _loadAndRenderDialog({
296 ...mergedOptions,
297 onFormSubmitted: () => {
298 dialog?.removeFromDom();
299 mergedOptions.onFormSubmitted?.();
300 },
301 });
302 }
303 dialog.appendToDom();
304 dialog.open();
305 };
306 targetEl.addEventListener('click', handleClick);
307 const unsubscribe = (): void => {
308 _subscriptions = _subscriptions.filter(sub => sub !== unsubscribe);

Callers

nothing calls this directly

Calls 2

_loadAndRenderDialogFunction · 0.85
openMethod · 0.80

Tested by

no test coverage detected