The UI was in a weird state after the user selected a new material but before they had chosen a particular variant. The highlighted material did not match the content of the source editor.