Skip to content

Commit

Permalink
fix(dropdown): make "set text" work for custom actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lubber-de committed Dec 4, 2023
1 parent 7259033 commit a020696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -2587,7 +2587,7 @@
} else {
$combo.text(text);
}
} else if (settings.action === 'activate') {
} else if (settings.action === 'activate' || isFunction(settings.action)) {
if (text !== module.get.placeholderText() || isNotPlaceholder) {
$text.removeClass(className.placeholder);
}
Expand Down

0 comments on commit a020696

Please sign in to comment.