From 6de73002bde52df9a182e7f104daee634fc6232b Mon Sep 17 00:00:00 2001 From: vsync Date: Thu, 28 Nov 2019 12:58:13 +0100 Subject: [PATCH] - Show dropdown on arrow down #333 - fixed #267 - Pasted text separated with new line symbol doesn't process correctly - fixed #356 - addTags not working on mix-mode --- README.md | 3 +- dist/jQuery.tagify.min.js | 2 +- dist/tagify.css | 2 +- dist/tagify.js | 48 +++++++++------------ dist/tagify.min.js | 2 +- src/tagify.js | 42 +++++++++--------- src/tagify.scss | 19 ++++++--- test/test.html | 90 ++++++++++++++++++++++++++++----------- 8 files changed, 122 insertions(+), 86 deletions(-) diff --git a/README.md b/README.md index e63a9da7..7c200ac7 100644 --- a/README.md +++ b/README.md @@ -395,10 +395,11 @@ dropdown:select | Suggestions dropdown item selected (by mouse/keyboard/touch) Name | Type | Default | Info ----------------------- | ---------- | -------------------------------- | -------------------------------------------------------------------------- placeholder | String | | Placeholder text. If this attribute is set on an input/textarea element it will override this setting -delimiters | String | `,` | [regex] split tags by any of these delimiters. Example: `",|` |."` +delimiters | String | `,` | [regex string] split tags by any of these delimiters. Example: `",|` |."` pattern | String | null | Validate input by REGEX pattern (can also be applied on the input itself as an attribute) Ex: `/[1-9]/` mode | String | null | Use `select` for single-value dropdown-like select box. Sse `mix` as value to allow mixed-content. The 'pattern' setting must be set to some character. mixTagsInterpolator | Array | `['[[', ']]']` | Interpolation for mix mode. Everything between these will become a tag +mixTagsAllowedAfter | Regex | `/,|\.|\:|\s/` | Define conditions in which typed mix-tags content is allowing a tag to be created after. duplicates | Boolean | false | Should duplicate tags be allowed or not enforceWhitelist | Boolean | false | Should ONLY use tags allowed in whitelist autocomplete | Boolean | true | Tries to autocomplete the input's value while typing (match from whitelist) diff --git a/dist/jQuery.tagify.min.js b/dist/jQuery.tagify.min.js index fb4cb571..9c5b25d7 100644 --- a/dist/jQuery.tagify.min.js +++ b/dist/jQuery.tagify.min.js @@ -4,4 +4,4 @@ * Don't sell this code. (c) * https://github.com/yairEO/tagify */ -"use strict";function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e