Selecting 'Apply' when editing keyboard allocations closes the entire menu

Selecting ‘Apply’ when editing keyboard allocations closes the entire menu.

This is when editing custom keybindings