Skip to content

Commit

Permalink
Merge pull request #53 from TFSMads/bug/formatting
Browse files Browse the repository at this point in the history
Fix formaterings vælger
  • Loading branch information
TFSMads authored Aug 10, 2024
2 parents 956153b + 3c3b856 commit f1dd45c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ public Widget create(TransporterAction<T> transporterAction, DataManager<Data> d
DropdownWidget<T> widget = new DropdownWidget<>();
widget.setChangeListener(transporterAction);

widget.setSelected(initialValue, true);

Class<?> type = defaultValue.getClass();


Expand All @@ -60,6 +58,8 @@ public Widget create(TransporterAction<T> transporterAction, DataManager<Data> d
DefaultEntryRenderer<T> entryRenderer = (DefaultEntryRenderer<T>) widget.entryRenderer();
entryRenderer.setTranslationKeyPrefix("dropdownwidget." + defaultValue.getClass().getSimpleName() + ".entries");

widget.setSelected(initialValue, true);

return widget;
}

Expand Down

0 comments on commit f1dd45c

Please sign in to comment.