Merged in feature/PMCORE-3262 (pull request #8085)

PMCORE-3262
This commit is contained in:
Rodrigo Quelca
2021-08-31 13:55:05 +00:00

View File

@@ -103,7 +103,7 @@ export default {
searchLabel: this.$i18n.t("ID_SEARCH"), searchLabel: this.$i18n.t("ID_SEARCH"),
addSearchTitle: this.$i18n.t("ID_ADD_SEARCH_FILTER_CRITERIA"), addSearchTitle: this.$i18n.t("ID_ADD_SEARCH_FILTER_CRITERIA"),
searchTags: [], searchTags: [],
dataLoaded: false,
filterItems: [ filterItems: [
{ {
type: "CaseNumber", type: "CaseNumber",
@@ -206,6 +206,7 @@ export default {
o.autoShow = false; o.autoShow = false;
}); });
this.setFilters(fils); this.setFilters(fils);
this.dataLoaded = true;
} }
}, },
watch: { watch: {
@@ -214,7 +215,8 @@ export default {
handler(newVal, oldVal) { handler(newVal, oldVal) {
this.searchTags = []; this.searchTags = [];
this.selected = []; this.selected = [];
if (newVal.length) { //Prevent show popover at the first time
if (newVal.length && this.dataLoaded) {
this.setFilters(newVal, oldVal); this.setFilters(newVal, oldVal);
this.searchClickHandler(); this.searchClickHandler();
} }