mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-03 05:09:48 +01:00
possible fix to #1660
modified the tagsinput source to use keypress instead of keydown for the confirmKeys
This commit is contained in:
@@ -14,7 +14,7 @@ define('composer/tags', function() {
|
||||
|
||||
tagEl.tagsinput({
|
||||
maxTags: config.tagsPerTopic,
|
||||
confirmKeys: [13, 188]
|
||||
confirmKeys: [13, 44]
|
||||
});
|
||||
addTags(postData.tags, tagEl);
|
||||
|
||||
@@ -46,7 +46,7 @@ define('composer/tags', function() {
|
||||
|
||||
function triggerEnter(input) {
|
||||
// http://stackoverflow.com/a/3276819/583363
|
||||
var e = jQuery.Event('keydown');
|
||||
var e = jQuery.Event('keypress');
|
||||
e.which = 13;
|
||||
e.keyCode = 13;
|
||||
setTimeout(function() {
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user