Javascript CustomEvent detail not getting passed

前端 未结 3 1894
别那么骄傲
别那么骄傲 2021-02-08 10:30

I am trying to create a custom javascript event. The event works and fires correctly, but the \'detail\' object that I\'m passing it is not available.

Here\'s the code i

3条回答
  •  清酒与你
    2021-02-08 11:21

    You need to access the originalEvent property for the details

    console.log(e.originalEvent.detail);
    

提交回复
热议问题