Questions tagged [custom-event]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
117 views

LWC: Any idea if Custom Events will be filtered in the future releases?

I am trying to implement GTM(google tag manager) with a community following this article. The problem I am experiencing is that GTM cannot see the lightning web components that were loaded in the ...
0
votes
1answer
46 views

Event not getting fired from a lwc custom lookup component

I have used a custom lightning datatable which has a component displayed as a lookup customLightningDatatable.html import LightningDatatable from 'lightning/datatable'; import lookupTemplate from './...
0
votes
2answers
290 views

TypeError: parameter 1 is not of type 'Event'

I am extending the functionality of the lightning-datatable component and while trying to dispatch a CustomEvent I am receiving the following error: TypeError: Failed to execute 'dispatchEvent' on '...
2
votes
1answer
63 views

Distinguish between the Standard DOM event and the CustomEvent

How to distinguish between the Standard DOM event and the CustomEvent dispatched by LWC Component? Assume we have some 2 simple LWС Components <!--child.html--> <template> <input ...
0
votes
1answer
129 views

Unable to catch dispatched custom event. Instead have to use a Callback function. Why?

I am attempting to add a confirmation dialog (yes/no) for a predefined action on a LWC which does archiving. Basically need to show a popup saying do you confirm and the user selects yes/no to proceed....
0
votes
0answers
277 views

CloseTab() is not working when sending customEvent from LWC

I am calling a Lightning Component wrapped in VF through a detail page button and that is openened in a subtab whenever that custom button is clicked. Now, I am trying to close that subtab when ...
4
votes
1answer
2k views

How to check the CustomEvent detail in a Jest test for an LWC?

I'm on my first day of writing Jest tests for one of our LWCs, and that component fires an event with some dates included as the event detail: @api get selectedDates() { return this....