@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
  */
@@ -4268,13 +4268,21 @@
4268
4268
  ;
4269
4269
 
4270
4270
  _proto.moveToList = function moveToList(el) {
4271
- $(el).insertBefore(this.$dropdownContainer);
4271
+ var $el = $(el);
4272
+ $el.removeClass('dropdown-item');
4273
+ $el.insertBefore(this.$dropdownContainer);
4272
4274
  this.checkForChanges();
4273
4275
  } // Move to dropdown
4274
4276
  ;
4275
4277
 
4276
4278
  _proto.moveToDropdown = function moveToDropdown(el) {
4277
- $(el).appendTo(this.$dropdownList);
4279
+ var $el = $(el);
4280
+
4281
+ if (!$el.hasClass('dropdown-item')) {
4282
+ $el.addClass('dropdown-item');
4283
+ }
4284
+
4285
+ $el.appendTo(this.$dropdownList);
4278
4286
  this.checkForChanges();
4279
4287
  } // Overflow status
4280
4288
  ;