Remove empty option from select and fix IE bug

pull/4936/head
Henriette Dinger 8 years ago committed by Oliver Günther
parent 1cfe4b80cc
commit 6f1502998e
  1. 4
      frontend/app/components/wp-relations/wp-relations-create/dynamic-relation-types.template.html

@ -16,8 +16,8 @@
<div class="grid-block v-align" ng-if="$ctrl.showRelationsCreateForm">
<div class="grid-content collapse medium-3">
<label class="hidden-for-sighted" for="relation-type--select">{{ ::$ctrl.text.relationType }}</label>
<select
class="relationTypeSelect"
<select ng-init="$ctrl.selectedRelationType = $ctrl.relationTypes[0]"
class="form--select relationTypeSelect"
id="relation-type--select"
ng-model="$ctrl.selectedRelationType"
ng-options="relationType.label for relationType in $ctrl.relationTypes"

Loading…
Cancel
Save