Roo/bootstrap/form/MultiLineTag.js
authorleon <leon@roojs.com>
Wed, 1 Nov 2023 08:35:06 +0000 (16:35 +0800)
committerleon <leon@roojs.com>
Wed, 1 Nov 2023 08:35:06 +0000 (16:35 +0800)
Roo/bootstrap/form/MultiLineTag.js

index f457e62..b8a3d43 100644 (file)
@@ -137,10 +137,7 @@ Roo.extend(Roo.bootstrap.form.MultiLineTag, Roo.bootstrap.form.Input,  {
                     this.removeBtn = button;
 
                     this.removeBtn.on('click', function() {
-                        _self.destroy();
-                        _this.tagRows.splice(_this.tagRows.indexOf(_self), 1);
-                        _this.showHideRemoveBtn();
-                        _this.fireEvent('change', _this, _this.getValue(), false);
+                        _this.removeTagRow(_self);
                     });
                 }
             }