@danielgindi/selectbox 2.0.45 → 2.0.46

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.
package/dist/lib.es6.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @danielgindi/selectbox 2.0.45
2
+ * @danielgindi/selectbox 2.0.46
3
3
  * git://github.com/danielgindi/selectbox.git
4
4
  */
5
5
  import { createElement, closestUntil, setElementAttrs, next, prev } from '@danielgindi/dom-utils/lib/Dom';
@@ -3513,7 +3513,7 @@ Emits the following events:
3513
3513
  'search' {value}: input box value has changed
3514
3514
  'search:focus': input box has gained focus
3515
3515
  'search:blur': input box has lost focus
3516
- 'search:term': search term has been updated
3516
+ 'search:term': search term has been updated, before results were re-filtered
3517
3517
  'input:resize': input box resized
3518
3518
  'itemschanged' {term, mutated, count}: the current set of items has changed
3519
3519
  */
@@ -4028,8 +4028,8 @@ class SelectBox {
4028
4028
 
4029
4029
  if (performSearch) {
4030
4030
  p.filterTerm = p.input.value.trim();
4031
- p.dropList?.setSearchTerm(p.filterTerm, performSearch);
4032
4031
  this._trigger('search:term', p.filterTerm);
4032
+ p.dropList?.setSearchTerm(p.filterTerm, performSearch);
4033
4033
  }
4034
4034
 
4035
4035
  return this;
@@ -5590,8 +5590,8 @@ class SelectBox {
5590
5590
  if (p.disabled || p.readOnly) return;
5591
5591
 
5592
5592
  p.filterTerm = p.input.value.trim();
5593
- p.dropList?.setSearchTerm(p.filterTerm, true);
5594
5593
  this._trigger('search:term', p.filterTerm);
5594
+ p.dropList?.setSearchTerm(p.filterTerm, true);
5595
5595
  })
5596
5596
  .add(p.input, 'click.dropdown', () => {
5597
5597
  if (p.disabled || p.readOnly) return;
@@ -6434,8 +6434,8 @@ class SelectBox {
6434
6434
  p.input.value = value == null ? '' : String(value);
6435
6435
 
6436
6436
  p.filterTerm = '';
6437
- p.dropList?.setSearchTerm('', true);
6438
6437
  this._trigger('search:term', p.filterTerm);
6438
+ p.dropList?.setSearchTerm('', true);
6439
6439
  }
6440
6440
 
6441
6441
  /**