fomantic-ui 2.9.0-beta.325 → 2.9.0-beta.326

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.
Files changed (157) hide show
  1. package/dist/components/accordion.css +1 -1
  2. package/dist/components/accordion.js +1 -1
  3. package/dist/components/accordion.min.css +1 -1
  4. package/dist/components/accordion.min.js +1 -1
  5. package/dist/components/ad.css +1 -1
  6. package/dist/components/ad.min.css +1 -1
  7. package/dist/components/api.js +1 -1
  8. package/dist/components/api.min.js +1 -1
  9. package/dist/components/breadcrumb.css +1 -1
  10. package/dist/components/breadcrumb.min.css +1 -1
  11. package/dist/components/button.css +1 -1
  12. package/dist/components/button.min.css +1 -1
  13. package/dist/components/calendar.css +1 -1
  14. package/dist/components/calendar.js +1 -1
  15. package/dist/components/calendar.min.css +1 -1
  16. package/dist/components/calendar.min.js +1 -1
  17. package/dist/components/card.css +1 -1
  18. package/dist/components/card.min.css +1 -1
  19. package/dist/components/checkbox.css +1 -1
  20. package/dist/components/checkbox.js +1 -1
  21. package/dist/components/checkbox.min.css +1 -1
  22. package/dist/components/checkbox.min.js +1 -1
  23. package/dist/components/comment.css +1 -1
  24. package/dist/components/comment.min.css +1 -1
  25. package/dist/components/container.css +1 -1
  26. package/dist/components/container.min.css +1 -1
  27. package/dist/components/dimmer.css +1 -1
  28. package/dist/components/dimmer.js +1 -1
  29. package/dist/components/dimmer.min.css +1 -1
  30. package/dist/components/dimmer.min.js +1 -1
  31. package/dist/components/divider.css +1 -1
  32. package/dist/components/divider.min.css +1 -1
  33. package/dist/components/dropdown.css +1 -1
  34. package/dist/components/dropdown.js +34 -14
  35. package/dist/components/dropdown.min.css +1 -1
  36. package/dist/components/dropdown.min.js +2 -2
  37. package/dist/components/embed.css +1 -1
  38. package/dist/components/embed.js +1 -1
  39. package/dist/components/embed.min.css +1 -1
  40. package/dist/components/embed.min.js +1 -1
  41. package/dist/components/feed.css +1 -1
  42. package/dist/components/feed.min.css +1 -1
  43. package/dist/components/flag.css +1 -1
  44. package/dist/components/flag.min.css +1 -1
  45. package/dist/components/flyout.css +1 -1
  46. package/dist/components/flyout.js +3 -2
  47. package/dist/components/flyout.min.css +1 -1
  48. package/dist/components/flyout.min.js +2 -2
  49. package/dist/components/form.css +1 -1
  50. package/dist/components/form.js +2 -1
  51. package/dist/components/form.min.css +1 -1
  52. package/dist/components/form.min.js +2 -2
  53. package/dist/components/grid.css +1 -1
  54. package/dist/components/grid.min.css +1 -1
  55. package/dist/components/header.css +1 -1
  56. package/dist/components/header.min.css +1 -1
  57. package/dist/components/icon.css +1 -1
  58. package/dist/components/icon.min.css +1 -1
  59. package/dist/components/image.css +1 -1
  60. package/dist/components/image.min.css +1 -1
  61. package/dist/components/input.css +1 -1
  62. package/dist/components/input.min.css +1 -1
  63. package/dist/components/item.css +1 -1
  64. package/dist/components/item.min.css +1 -1
  65. package/dist/components/label.css +1 -1
  66. package/dist/components/label.min.css +1 -1
  67. package/dist/components/list.css +1 -1
  68. package/dist/components/list.min.css +1 -1
  69. package/dist/components/loader.css +1 -1
  70. package/dist/components/loader.min.css +1 -1
  71. package/dist/components/message.css +1 -1
  72. package/dist/components/message.min.css +1 -1
  73. package/dist/components/modal.css +1 -1
  74. package/dist/components/modal.js +3 -2
  75. package/dist/components/modal.min.css +1 -1
  76. package/dist/components/modal.min.js +2 -2
  77. package/dist/components/nag.css +1 -1
  78. package/dist/components/nag.js +1 -1
  79. package/dist/components/nag.min.css +1 -1
  80. package/dist/components/nag.min.js +1 -1
  81. package/dist/components/placeholder.css +1 -1
  82. package/dist/components/placeholder.min.css +1 -1
  83. package/dist/components/popup.css +1 -1
  84. package/dist/components/popup.js +1 -1
  85. package/dist/components/popup.min.css +1 -1
  86. package/dist/components/popup.min.js +1 -1
  87. package/dist/components/progress.css +1 -1
  88. package/dist/components/progress.js +1 -1
  89. package/dist/components/progress.min.css +1 -1
  90. package/dist/components/progress.min.js +1 -1
  91. package/dist/components/rail.css +1 -1
  92. package/dist/components/rail.min.css +1 -1
  93. package/dist/components/rating.css +1 -1
  94. package/dist/components/rating.js +1 -1
  95. package/dist/components/rating.min.css +1 -1
  96. package/dist/components/rating.min.js +1 -1
  97. package/dist/components/reset.css +1 -1
  98. package/dist/components/reset.min.css +1 -1
  99. package/dist/components/reveal.css +1 -1
  100. package/dist/components/reveal.min.css +1 -1
  101. package/dist/components/search.css +1 -1
  102. package/dist/components/search.js +1 -1
  103. package/dist/components/search.min.css +1 -1
  104. package/dist/components/search.min.js +1 -1
  105. package/dist/components/segment.css +1 -1
  106. package/dist/components/segment.min.css +1 -1
  107. package/dist/components/shape.css +1 -1
  108. package/dist/components/shape.js +1 -1
  109. package/dist/components/shape.min.css +1 -1
  110. package/dist/components/shape.min.js +1 -1
  111. package/dist/components/sidebar.css +1 -1
  112. package/dist/components/sidebar.js +1 -1
  113. package/dist/components/sidebar.min.css +1 -1
  114. package/dist/components/sidebar.min.js +1 -1
  115. package/dist/components/site.css +1 -1
  116. package/dist/components/site.js +1 -1
  117. package/dist/components/site.min.css +1 -1
  118. package/dist/components/site.min.js +1 -1
  119. package/dist/components/slider.js +1 -1
  120. package/dist/components/slider.min.js +1 -1
  121. package/dist/components/state.js +1 -1
  122. package/dist/components/state.min.js +1 -1
  123. package/dist/components/statistic.css +1 -1
  124. package/dist/components/statistic.min.css +1 -1
  125. package/dist/components/step.css +1 -1
  126. package/dist/components/step.min.css +1 -1
  127. package/dist/components/sticky.css +1 -1
  128. package/dist/components/sticky.js +1 -1
  129. package/dist/components/sticky.min.css +1 -1
  130. package/dist/components/sticky.min.js +1 -1
  131. package/dist/components/tab.css +1 -1
  132. package/dist/components/tab.js +1 -1
  133. package/dist/components/tab.min.css +1 -1
  134. package/dist/components/tab.min.js +1 -1
  135. package/dist/components/table.css +1 -1
  136. package/dist/components/table.min.css +1 -1
  137. package/dist/components/text.css +1 -1
  138. package/dist/components/text.min.css +1 -1
  139. package/dist/components/toast.css +1 -1
  140. package/dist/components/toast.js +1 -1
  141. package/dist/components/toast.min.css +1 -1
  142. package/dist/components/toast.min.js +1 -1
  143. package/dist/components/transition.css +1 -1
  144. package/dist/components/transition.js +1 -1
  145. package/dist/components/transition.min.css +1 -1
  146. package/dist/components/transition.min.js +1 -1
  147. package/dist/components/visibility.js +1 -1
  148. package/dist/components/visibility.min.js +1 -1
  149. package/dist/semantic.css +50 -50
  150. package/dist/semantic.js +64 -41
  151. package/dist/semantic.min.css +1 -1
  152. package/dist/semantic.min.js +2 -2
  153. package/package.json +1 -1
  154. package/src/definitions/behaviors/form.js +1 -0
  155. package/src/definitions/modules/dropdown.js +33 -13
  156. package/src/definitions/modules/flyout.js +2 -1
  157. package/src/definitions/modules/modal.js +2 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Accordion
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Accordion
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Accordion
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Accordion
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Accordion
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Accordion
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.0-beta.325+1ff8bfd
2
+ * # Fomantic UI - 2.9.0-beta.326+ad08d37
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * http://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Ad
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Ad
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Ad
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Ad
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - API
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - API
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.0-beta.325+1ff8bfd
2
+ * # Fomantic UI - 2.9.0-beta.326+ad08d37
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * http://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Breadcrumb
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Breadcrumb
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Breadcrumb
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Breadcrumb
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Button
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Button
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Button
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Button
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Calendar
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Calendar
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Calendar
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Calendar
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Calendar
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Calendar
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.0-beta.325+1ff8bfd
2
+ * # Fomantic UI - 2.9.0-beta.326+ad08d37
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * http://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Card
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Card
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Card
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Card
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Checkbox
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Checkbox
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Checkbox
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Checkbox
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Checkbox
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Checkbox
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.0-beta.325+1ff8bfd
2
+ * # Fomantic UI - 2.9.0-beta.326+ad08d37
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * http://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Comment
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Comment
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Comment
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Comment
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Container
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Container
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Container
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Container
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Dimmer
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Dimmer
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Dimmer
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Dimmer
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Dimmer
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Dimmer
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.0-beta.325+1ff8bfd
2
+ * # Fomantic UI - 2.9.0-beta.326+ad08d37
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * http://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Divider
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Divider
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Divider
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Divider
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Dropdown
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Dropdown
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Dropdown
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Dropdown
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -543,6 +543,7 @@ $.fn.dropdown = function(parameters) {
543
543
  return true;
544
544
  }
545
545
  if(settings.onShow.call(element) !== false) {
546
+ module.remove.empty();
546
547
  module.animate.show(function() {
547
548
  module.bind.intent();
548
549
  if(module.has.search() && !preventFocus) {
@@ -601,7 +602,7 @@ $.fn.dropdown = function(parameters) {
601
602
  module.verbose('Hiding menu instantaneously');
602
603
  module.remove.active();
603
604
  module.remove.visible();
604
- $menu.transition('hide');
605
+ $menu.transition('destroy').transition('hide');
605
606
  },
606
607
 
607
608
  hideSubMenus: function() {
@@ -762,6 +763,7 @@ $.fn.dropdown = function(parameters) {
762
763
  }
763
764
  else {
764
765
  module.verbose('All items filtered, hiding dropdown', searchTerm);
766
+ module.set.empty();
765
767
  module.hideMenu();
766
768
  }
767
769
  }
@@ -772,7 +774,7 @@ $.fn.dropdown = function(parameters) {
772
774
  if(settings.allowAdditions) {
773
775
  module.add.userSuggestion(module.escape.htmlEntities(query));
774
776
  }
775
- if(module.is.searchSelection() && module.can.show() && module.is.focusedOnSearch() ) {
777
+ if(module.is.searchSelection() && module.can.show() && module.is.focusedOnSearch() && !module.is.empty()) {
776
778
  module.show();
777
779
  }
778
780
  }
@@ -1389,6 +1391,10 @@ $.fn.dropdown = function(parameters) {
1389
1391
  if(settings.allowAdditions) {
1390
1392
  module.remove.userAddition();
1391
1393
  }
1394
+ module.remove.filteredItem();
1395
+ if(!module.is.visible()) {
1396
+ module.show();
1397
+ }
1392
1398
  module.remove.searchTerm();
1393
1399
  if(!module.is.focusedOnSearch() && skipRefocus !== true) {
1394
1400
  module.focusSearch(true);
@@ -1503,12 +1509,18 @@ $.fn.dropdown = function(parameters) {
1503
1509
  }
1504
1510
  $activeLabel.last().next(selector.siblingLabel).addClass(className.active);
1505
1511
  module.remove.activeLabels($activeLabel);
1512
+ if(!module.is.visible()){
1513
+ module.show();
1514
+ }
1506
1515
  event.preventDefault();
1507
1516
  }
1508
1517
  else if(caretAtStart && !isSelectedSearch && !hasActiveLabel && pressedKey == keys.backspace) {
1509
1518
  module.verbose('Removing last label on input backspace');
1510
1519
  $activeLabel = $label.last().addClass(className.active);
1511
1520
  module.remove.activeLabels($activeLabel);
1521
+ if(!module.is.visible()){
1522
+ module.show();
1523
+ }
1512
1524
  }
1513
1525
  }
1514
1526
  else {
@@ -1540,14 +1552,16 @@ $.fn.dropdown = function(parameters) {
1540
1552
  hasSelectedItem = ($selectedItem.length > 0),
1541
1553
  selectedIsSelectable = ($selectedItem.not(selector.unselectable).length > 0),
1542
1554
  delimiterPressed = (event.key === settings.delimiter && module.is.multiple()),
1543
- isAdditionWithoutMenu = (settings.allowAdditions && settings.hideAdditions && (pressedKey == keys.enter || delimiterPressed) && selectedIsSelectable),
1555
+ isAdditionWithoutMenu = settings.allowAdditions && (pressedKey == keys.enter || delimiterPressed),
1544
1556
  $nextItem,
1545
1557
  isSubMenuItem
1546
1558
  ;
1547
1559
  // allow selection with menu closed
1548
1560
  if(isAdditionWithoutMenu) {
1549
- module.verbose('Selecting item from keyboard shortcut', $selectedItem);
1550
- module.event.item.click.call($selectedItem, event);
1561
+ if (selectedIsSelectable && settings.hideAdditions) {
1562
+ module.verbose('Selecting item from keyboard shortcut', $selectedItem);
1563
+ module.event.item.click.call($selectedItem, event);
1564
+ }
1551
1565
  if(module.is.searchSelection()) {
1552
1566
  module.remove.searchTerm();
1553
1567
  }
@@ -1690,7 +1704,7 @@ $.fn.dropdown = function(parameters) {
1690
1704
  }
1691
1705
  else {
1692
1706
  // delimiter key
1693
- if(delimiterPressed) {
1707
+ if(pressedKey == keys.enter || delimiterPressed) {
1694
1708
  event.preventDefault();
1695
1709
  }
1696
1710
  // down arrow (open menu)
@@ -1886,7 +1900,7 @@ $.fn.dropdown = function(parameters) {
1886
1900
  },
1887
1901
  userValues: function() {
1888
1902
  var
1889
- values = module.get.values()
1903
+ values = module.get.values(true)
1890
1904
  ;
1891
1905
  if(!values) {
1892
1906
  return false;
@@ -2563,7 +2577,7 @@ $.fn.dropdown = function(parameters) {
2563
2577
  $menu.removeClass(className.loading);
2564
2578
  }
2565
2579
  },
2566
- text: function(text) {
2580
+ text: function(text, isNotPlaceholder) {
2567
2581
  if(settings.action === 'combo') {
2568
2582
  module.debug('Changing combo button text', text, $combo);
2569
2583
  if(settings.preserveHTML) {
@@ -2574,7 +2588,7 @@ $.fn.dropdown = function(parameters) {
2574
2588
  }
2575
2589
  }
2576
2590
  else if(settings.action === 'activate') {
2577
- if(text !== module.get.placeholderText()) {
2591
+ if(text !== module.get.placeholderText() || isNotPlaceholder) {
2578
2592
  $text.removeClass(className.placeholder);
2579
2593
  }
2580
2594
  module.debug('Changing text', text, $text);
@@ -2593,7 +2607,7 @@ $.fn.dropdown = function(parameters) {
2593
2607
  var
2594
2608
  value = module.get.choiceValue($item),
2595
2609
  searchText = module.get.choiceText($item, false),
2596
- text = module.get.choiceText($item, true)
2610
+ text = module.get.choiceText($item)
2597
2611
  ;
2598
2612
  module.debug('Setting user selection to item', $item);
2599
2613
  module.remove.activeItem();
@@ -2822,7 +2836,7 @@ $.fn.dropdown = function(parameters) {
2822
2836
  module.save.remoteData(selectedText, selectedValue);
2823
2837
  }
2824
2838
  if (!keepSearchTerm && !$selected.hasClass(className.actionable)) {
2825
- module.set.text(selectedText);
2839
+ module.set.text(selectedText, true);
2826
2840
  }
2827
2841
  module.set.value(selectedValue, selectedText, $selected, preventChangeTrigger);
2828
2842
  $selected
@@ -2835,6 +2849,10 @@ $.fn.dropdown = function(parameters) {
2835
2849
  if (!keepSearchTerm) {
2836
2850
  module.remove.searchTerm();
2837
2851
  }
2852
+ if(module.is.allFiltered()) {
2853
+ module.set.empty();
2854
+ module.hideMenu();
2855
+ }
2838
2856
  }
2839
2857
  },
2840
2858
 
@@ -3167,10 +3185,9 @@ $.fn.dropdown = function(parameters) {
3167
3185
  },
3168
3186
  value: function(removedValue, removedText, $removedItem, preventChangeTrigger) {
3169
3187
  var
3170
- values = module.get.values(),
3188
+ values = module.get.values(true),
3171
3189
  newValue
3172
3190
  ;
3173
- removedValue = module.escape.htmlEntities(removedValue);
3174
3191
  if( module.has.selectInput() ) {
3175
3192
  module.verbose('Input is <select> removing selected option', removedValue);
3176
3193
  newValue = module.remove.arrayValue(removedValue, values);
@@ -3403,6 +3420,9 @@ $.fn.dropdown = function(parameters) {
3403
3420
  edge: function() {
3404
3421
  return !!window.chrome && !!window.StyleMedia;
3405
3422
  },
3423
+ empty: function() {
3424
+ return $module.hasClass(className.empty);
3425
+ },
3406
3426
  chrome: function() {
3407
3427
  return !!window.chrome && !window.StyleMedia;
3408
3428
  },
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.0-beta.325+1ff8bfd - Dropdown
2
+ * # Fomantic-UI 2.9.0-beta.326+ad08d37 - Dropdown
3
3
  * http://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *