Crayons FwModal "fwClose" event is not getting triggered

Hi Team,

Good Day!

I am using crayons FwModal, when i close the modal by clicking on the cross icon in the modal header, I need to trigger a function.

Here is my code

<FwModal
         id="add-application"
         submitText="submitText"
         hideFooter
         isOpen={addModalOpen}
         fwClose={toggle}
         titleText="Add Application">

Kindly share me the solution for this.

Thanks & Regards,
Gopi

Hi Gopi,

Please use the event name as onFwClose

onFwClose={toggle}>