How do I make this dropdown dissapear if I click off screen or click the option?

Hello everyone, nice to meet you. 

When you click on the dropdown arrow is opens this dropdown with options.

But when I select the option or click off to another part of the screen it will stay open instead of escaping.

What is the recommended way to fix this issue? I was thinking of Ajax Refresh for when the option is clicked but i'm not sure.


Thanks! 

Hi, friend.

The ajax must solve your issue, but the combo close for its own.

Can you print the screen error?