Skip to content

Commit 22d29e8

Browse files
authored
fix(dropdown): add given placeholder
When the dropdown settings do not contain any data, so either a given HTML structure should be used or the data should be fetched via apiSettings, and also a placeholderText is provided via settings, such placeholder wont be set.
1 parent 4c35b29 commit 22d29e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/definitions/modules/dropdown.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@
126126
module.set.initialLoad();
127127
module.change.values(settings.values);
128128
module.remove.initialLoad();
129+
} else if (module.get.placeholderText() !== '') {
130+
module.set.placeholderText();
129131
}
130132

131133
module.refreshData();

0 commit comments

Comments
 (0)