Browse Source

Dont append the filter-control stuff, overwrite it to prevent duplicated (#5943)

elements

Co-authored-by: Dennis Hernández <dennishernandezvargas@gmail.com>
Dustin Utecht 4 years ago
parent
commit
907f289819
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extensions/filter-control/utils.js

+ 1 - 1
src/extensions/filter-control/utils.js

@@ -355,7 +355,7 @@ export function createControls (that, header) {
 
 
       if ($th.data('field') === column.field) {
       if ($th.data('field') === column.field) {
         $th.find('.filter-control').remove()
         $th.find('.filter-control').remove()
-        $th.find('.fht-cell').append(html.join(''))
+        $th.find('.fht-cell').html(html.join(''))
         return false
         return false
       }
       }
     })
     })