Menu closes when a layer or item is selected.