@danielgindi/selectbox 2.0.38 → 2.0.40

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.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @danielgindi/selectbox 2.0.38
2
+ * @danielgindi/selectbox 2.0.40
3
3
  * git://github.com/danielgindi/selectbox.git
4
4
  */
5
5
  (function (global, factory) {
@@ -3158,10 +3158,10 @@
3158
3158
  var store = sharedStore$1.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
3159
3159
 
3160
3160
  (store.versions || (store.versions = [])).push({
3161
- version: '3.46.0',
3161
+ version: '3.48.0',
3162
3162
  mode: IS_PURE ? 'pure' : 'global',
3163
- copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)',
3164
- license: 'https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE',
3163
+ copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
3164
+ license: 'https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE',
3165
3165
  source: 'https://github.com/zloirock/core-js'
3166
3166
  });
3167
3167
  return sharedStore$1.exports;
@@ -4174,7 +4174,7 @@
4174
4174
 
4175
4175
  var TO_STRING_TAG = wellKnownSymbol('toStringTag');
4176
4176
  var test = {};
4177
-
4177
+ // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
4178
4178
  test[TO_STRING_TAG] = 'z';
4179
4179
 
4180
4180
  toStringTagSupport = String(test) === '[object z]';
@@ -4925,7 +4925,7 @@
4925
4925
  var result = '';
4926
4926
  var brackets = false;
4927
4927
  var chr;
4928
- for (; index <= length; index++) {
4928
+ for (; index < length; index++) {
4929
4929
  chr = charAt(string, index);
4930
4930
  if (chr === '\\') {
4931
4931
  result += chr + charAt(string, ++index);
@@ -4954,7 +4954,7 @@
4954
4954
  var groupid = 0;
4955
4955
  var groupname = '';
4956
4956
  var chr;
4957
- for (; index <= length; index++) {
4957
+ for (; index < length; index++) {
4958
4958
  chr = charAt(string, index);
4959
4959
  if (chr === '\\') {
4960
4960
  chr += charAt(string, ++index);
@@ -5872,6 +5872,7 @@
5872
5872
  var DELEGATES_TO_SYMBOL = !fails(function () {
5873
5873
  // String methods call symbol-named RegExp methods
5874
5874
  var O = {};
5875
+ // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
5875
5876
  O[SYMBOL] = function () { return 7; };
5876
5877
  return ''[KEY](O) !== 7;
5877
5878
  });
@@ -5885,12 +5886,13 @@
5885
5886
  // We can't use real regex here since it causes deoptimization
5886
5887
  // and serious performance degradation in V8
5887
5888
  // https://github.com/zloirock/core-js/issues/306
5888
- re = {};
5889
5889
  // RegExp[@@split] doesn't call the regex's exec method, but first creates
5890
5890
  // a new one. We need to return the patched regex when creating the new one.
5891
- re.constructor = {};
5892
- re.constructor[SPECIES] = function () { return re; };
5893
- re.flags = '';
5891
+ var constructor = {};
5892
+ // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
5893
+ constructor[SPECIES] = function () { return re; };
5894
+ re = { constructor: constructor, flags: '' };
5895
+ // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
5894
5896
  re[SYMBOL] = /./[SYMBOL];
5895
5897
  }
5896
5898
 
@@ -12034,7 +12036,9 @@
12034
12036
  break;
12035
12037
 
12036
12038
  default:
12037
- if (p.allowTypeToSelect) {
12039
+ if (dropList.isVisible()) {
12040
+ dropList._keydownFreeType(evt, false);
12041
+ } else if (p.allowTypeToSelect) {
12038
12042
  dropList._keydownFreeType(evt, true);
12039
12043
  } else {
12040
12044
  this.openList();