fix #29471 Added removal from selection list when deleting element