fix behavior of dropdown losing z-index on click inside