New CloseMenuOnClick property added:
CloseMenuOnClick is True (default) – the menu will close when a non-root item that does not have children is clicked.
CloseMenuOnClick is False – the menu will not close when a non-root item that does not have children is clicked.
When a root item that is expanded is clicked, it closes. If it is clicked again, it opens.