Skip to content

Commit

Permalink
Local select: allow searching for multi-word (#2870)
Browse files Browse the repository at this point in the history
  • Loading branch information
maurofmferrao authored Jan 28, 2025
1 parent ed98ac8 commit 42a0865
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/core/xibo-cms.js
Original file line number Diff line number Diff line change
Expand Up @@ -2739,7 +2739,9 @@ window.makeLocalSelect = function(element, parent, addRandomId = false) {
}

// Remove whitespaces and split by comma
queryText = queryText.replace(' ', '').split(',');
queryText = queryText.trim()
.split(',').map((subStr) => subStr.trim())
.filter((subStr) => subStr !== '');
queryTags = queryTags.replace(' ', '').split(',');

// Find by text
Expand Down

0 comments on commit 42a0865

Please sign in to comment.