@danielgindi/selectbox 2.0.50 → 2.0.51

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/lib/SelectBox.js CHANGED
@@ -3309,10 +3309,12 @@ class SelectBox {
3309
3309
  event.preventDefault();
3310
3310
  } else if (event.key === VALUE_BACK_SPACE && target.value.length === 0) {
3311
3311
  const itemEl = p.multiItemEls[p.multiItemEls.length - 1];
3312
- if (!itemEl || itemEl[ItemSymbol].value === undefined)
3312
+ if (!itemEl)
3313
3313
  return;
3314
3314
 
3315
3315
  const item = itemEl[ItemSymbol], value = item[p.valueProp];
3316
+ if (value === undefined)
3317
+ return;
3316
3318
 
3317
3319
  let removeselEvt = { value: value, item: item, cancel: false };
3318
3320
  this._trigger('removesel:before', removeselEvt);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielgindi/selectbox",
3
- "version": "2.0.50",
3
+ "version": "2.0.51",
4
4
  "description": "A collection of dom utilities. So you can work natively with the dom without dom frameworks.",
5
5
  "main": "dist/lib.cjs.min.js",
6
6
  "module": "lib/index.js",