Double tapping text box in popup closes it

Like the title says, I have a popup which has 2 text boxes in it. When I double tap a text box, it closes the popup for some reason, how do I avoid this?