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

index 0616e2e..dcd701b 100644 (file)
@@ -166,7 +166,11 @@ Roo.extend(Roo.bootstrap.form.MultiLineTag, Roo.bootstrap.form.Input,  {
 
     removeTagRow : function(row)
     {
+        row.destroy();
+        this.tagRows.splice(this.tagRows.indexOf(row), 1);
+        this.fireEvent('change', this, this.getValue(), false);
 
+        this.showHideRemoveBtn();
     },
 
     // show remove buttons only if there are more than {minimumRow} tags