From 469858b2e52af14f6b2ccc4458e97401aa145444 Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 7 May 2015 17:03:49 +0800 Subject: [PATCH] Roo/form/ComboBoxArray.js --- Roo/form/ComboBoxArray.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Roo/form/ComboBoxArray.js b/Roo/form/ComboBoxArray.js index 0569f25efa..e2482d6df0 100644 --- a/Roo/form/ComboBoxArray.js +++ b/Roo/form/ComboBoxArray.js @@ -469,11 +469,14 @@ Roo.extend(Roo.form.ComboBoxArray.Item, Roo.BoxComponent, { return; } - this.cb.items.remove(this); - this.el.child('img').un('click', this.remove, this); - this.el.remove(); - this.cb.updateHiddenEl(); + if(false !== this.cb.fireEvent('remove', this.cb, this)){ + this.cb.items.remove(this); + this.el.child('img').un('click', this.remove, this); + this.el.remove(); + this.cb.updateHiddenEl(); + + this.cb.fireEvent('remove', this.cb, this); + } - this.cb.fireEvent('remove', this.cb, this); } }); \ No newline at end of file -- 2.39.2