li:active after close popup

li:active after close popup

I have a list, where each li opens a popup. When I close the popup, the li still has an active styling. How would I get rid of that?

Here are some screens:

Opened popup

Closed popup

Any ideas?