fluent-accordion different function on item and panel

when i add different function on item and title, click on item works fine but click on panel execute both function.
Is there a way to resolve that as i need click on item Function_1 and click on panel Function_2


{{option.display_name}}

{{option.count}}

{{text}}

{{feedback.location.length}}

“`




i am trying to set different function in this code for item and different for panel click