From 0bffb4ab4ad01425a90aa8e72b1812b403b84fe1 Mon Sep 17 00:00:00 2001 From: Marco 'Lubber' Wienkoop Date: Fri, 13 Jan 2023 09:35:14 +0100 Subject: [PATCH] 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" --- src/definitions/modules/dropdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 41f7a35dff..8169764453 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -2829,7 +2829,7 @@ if (settings.label.variation) { $label.addClass(settings.label.variation); } - if (shouldAnimate === true) { + if (shouldAnimate === true && settings.label.transition) { module.debug('Animating in label', $label); $label .addClass(className.hidden)