Even if there is no history for undo it should only remove the last action it seems selection is not considered an action. If there is a preference to enable this process I have not found it (sorry).
This error has been fixed as of yEd 3.18.2.