Skip to content

Commit 1d9a088

Browse files
authored
fix(dropdown): set placeholdertext regardless of values
In situations where values are given for a dropdown, but the list is empty (or no value is selected), and also allowAdditions:true is set, a given placeholder wont be shown. That's because internally the dropdownlist does not get cleared when allowAdditions is true which also does not (re-)set the placeholder. By always trying to show a placeholder this situation gets fixed.
1 parent 66f0d1e commit 1d9a088

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/definitions/modules/dropdown.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@
126126
module.set.initialLoad();
127127
module.change.values(settings.values);
128128
module.remove.initialLoad();
129-
} else if (module.get.placeholderText() !== '') {
129+
}
130+
if (module.get.placeholderText() !== '') {
130131
module.set.placeholderText();
131132
}
132133

0 commit comments

Comments
 (0)