Sfoglia il codice sorgente

HUE-4828 [fb] Reset search filter when opening a directory

Enrico Berti 9 anni fa
parent
commit
1a12d53625

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -1727,7 +1727,7 @@
       }
     },
     update: function (element, valueAccessor, allBindingsAccessor) {
-      if (!$(element).is(':focus')) {
+      if (!$(element).is(':focus') || ko.unwrap(valueAccessor()) !== $(element).val()) {
         $(element).val(ko.unwrap(valueAccessor()));
       }
       if ($(element).val() === '') {