Skip to content

Commit

Permalink
Tags : Make it so entered Tags are registered on blur.
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterMis committed Sep 8, 2023
1 parent 481a0f1 commit 9fa9cbb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ui/src/core/xibo-cms.js
Expand Up @@ -406,6 +406,15 @@ function XiboInitialise(scope, options) {
// Normal tags input
$(self).tagsinput();
}

// When tagsinput loses focus, add the tag,
// do not rely solely on comma or selection from suggestions
$('.bootstrap-tagsinput input').blur(function() {
if ($(this).val() !== '') {
$(self).tagsinput('add', $(this).val());
$(this).val('');
}
});
});

// Initialize tags input for properties panel with connectorProperties field
Expand Down

0 comments on commit 9fa9cbb

Please sign in to comment.