@finqu/cool 1.2.25 → 1.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Cool UI v1.2.25 (https://finqu.fi)
2
+ * Cool UI v1.2.26 (https://finqu.fi)
3
3
  * Copyright 2011-2020 Finqu Oy
4
4
  * Licensed under the ISC license - (http://opensource.org/licenses/ISC)
5
5
  */
@@ -4264,13 +4264,21 @@ function (_AbstractUIComponent) {
4264
4264
  ;
4265
4265
 
4266
4266
  _proto.moveToList = function moveToList(el) {
4267
- $(el).insertBefore(this.$dropdownContainer);
4267
+ var $el = $(el);
4268
+ $el.removeClass('dropdown-item');
4269
+ $el.insertBefore(this.$dropdownContainer);
4268
4270
  this.checkForChanges();
4269
4271
  } // Move to dropdown
4270
4272
  ;
4271
4273
 
4272
4274
  _proto.moveToDropdown = function moveToDropdown(el) {
4273
- $(el).appendTo(this.$dropdownList);
4275
+ var $el = $(el);
4276
+
4277
+ if (!$el.hasClass('dropdown-item')) {
4278
+ $el.addClass('dropdown-item');
4279
+ }
4280
+
4281
+ $el.appendTo(this.$dropdownList);
4274
4282
  this.checkForChanges();
4275
4283
  } // Overflow status
4276
4284
  ;