DropDownDataGrid does not close on selection

I am using DropDownDataGrid in the EditTemplateContext of a DataGrid that is shown in a Dialog with tabs. The list shows OK, but when I select a value, the drop down does not close.

Such scenario works normally on my end: