Skip to content

Commit

Permalink
fix(dropdown): add given placeholder
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lubber-de committed May 13, 2024
1 parent 4c35b29 commit 22d29e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@
module.set.initialLoad();
module.change.values(settings.values);
module.remove.initialLoad();
} else if (module.get.placeholderText() !== '') {
module.set.placeholderText();
}

module.refreshData();
Expand Down

0 comments on commit 22d29e8

Please sign in to comment.