This commit is contained in:
JuanCarlos 2018-12-13 11:35:25 +01:00
parent 738c15bcb3
commit 5abbd00d38

View File

@ -48,7 +48,7 @@ app.directive('wzTagFilter', function() {
);
input.blur();
const term = $scope.newTag.split(':');
const obj = { name: term[0], value: term[1] };
const obj = { name: term[0].trim(), value: term[1].trim() };
const isFilter = obj.value;
if (
(isFilter &&
@ -75,7 +75,7 @@ app.directive('wzTagFilter', function() {
return (
x.type === 'filter' &&
x.key === tag.key &&
x.value.value === tag.value.value
x.value.value.toUpperCase() === tag.value.value.toUpperCase()
);
})
) {