Skip to content

Commit 0bffb4a

Browse files
authored
feat(dropdown): dont animate labels when no transition is given
This PR allows to disable animation transitions for labels of a multiple dropdown via $('.ui.dropdown').dropdown({ label: { transition: false } }); This might be useful in situations where the dropdown element is reattached in the DOM while the animation still takes place (and was triggered via javascript for example by "set selected"
1 parent a343501 commit 0bffb4a

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
@@ -2829,7 +2829,7 @@
28292829
if (settings.label.variation) {
28302830
$label.addClass(settings.label.variation);
28312831
}
2832-
if (shouldAnimate === true) {
2832+
if (shouldAnimate === true && settings.label.transition) {
28332833
module.debug('Animating in label', $label);
28342834
$label
28352835
.addClass(className.hidden)

0 commit comments

Comments
 (0)