Skip to content

Commit 9bbd39f

Browse files
authored
fix(dropdown): fix html for placeholder
If a placeholder text contained HTML (for example an icon) if was not remembered when reused (for example when the dropdown is cleared)
1 parent dbeeca3 commit 9bbd39f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/definitions/modules/dropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1772,7 +1772,7 @@ $.fn.dropdown = function(parameters) {
17721772
return $module.data(metadata.placeholderText) || '';
17731773
},
17741774
text: function() {
1775-
return $text.text();
1775+
return settings.preserveHTML ? $text.html() : $text.text();
17761776
},
17771777
query: function() {
17781778
return String($search.val()).trim();

0 commit comments

Comments
 (0)