I have a list in the popup. When I click an item this item is copying into a textarea.
I want to close the popup after this event. If I use the 'popup-close' in the class the item is not copying just closing the popup.
How can I do both event but first my function?
Thanks