You are welcome.
About your question, the "hideOnMaskTap" config should close the popup only when you tap the mask element outside the panel.
That's a strange behaviour.
Do you even have some other functions in your code that close this overlay panel?