Project

General

Profile

« Previous | Next » 

Revision 16ee34cb

Added by Andreas Kohlbecker about 5 years ago

fix #8184 using NativeSelect instead of ListSelect to avoid circumvent a bug in the ListSelect which affects the Chrome browser

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/reference/ReferencePopupEditor.java
24 24
import com.vaadin.ui.Component;
25 25
import com.vaadin.ui.Field;
26 26
import com.vaadin.ui.GridLayout;
27
import com.vaadin.ui.ListSelect;
27
import com.vaadin.ui.NativeSelect;
28 28
import com.vaadin.ui.TextField;
29 29

  
30 30
import eu.etaxonomy.cdm.api.utility.RoleProber;
......
73 73

  
74 74
    private final static int GRID_ROWS = 14;
75 75

  
76
    private ListSelect typeSelect;
76
    private NativeSelect typeSelect;
77 77

  
78 78
    private ToOneRelatedEntityCombobox<Reference> inReferenceCombobox;
79 79

  
......
152 152
        int row = 0;
153 153
        datePublishedField = new VerbatimTimePeriodField("Date published");
154 154
        addField(datePublishedField, "datePublished", 0, row, 1, row);
155
        typeSelect = new ListSelect("Reference type");
155
        typeSelect = new NativeSelect("Reference type");
156 156
        typeSelect.addItems(referenceTypes);
157 157
        typeSelect.setNullSelectionAllowed(false);
158
        typeSelect.setRows(1);
158

  
159 159
        typeSelect.addValueChangeListener(e -> updateFieldVisibility((ReferenceType)e.getProperty().getValue()));
160 160
        addField(typeSelect, "type", GRID_COLS - 1, row);
161 161
        grid.setComponentAlignment(typeSelect, Alignment.TOP_RIGHT);
......
461 461
    }
462 462

  
463 463
    @Override
464
    public ListSelect getTypeSelect() {
464
    public NativeSelect getTypeSelect() {
465 465
        return typeSelect;
466 466
    }
467 467

  

Also available in: Unified diff