Skip to content

Commit

Permalink
fixing #877 - added "userInput" setting ("true" by default) which all…
Browse files Browse the repository at this point in the history
…ows typing/pasting/editing tags
  • Loading branch information
Yair Even Or authored and Yair Even Or committed Aug 20, 2021
1 parent afc0933 commit cd611a9
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 4,225 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -953,6 +953,7 @@ mixTagsAllowedAfter | <sub>RegEx</sub> | <sub>`/,\|\.\|\:\|\s/
duplicates | <sub>Boolean</sub> | false | Should duplicate tags be allowed or not
trim | <sub>Boolean</sub> | true | If `true` trim the tag's value (remove before/after whitespaces)
enforceWhitelist | <sub>Boolean</sub> | false | Should ONLY use tags allowed in whitelist.<br>In `mix-mode`, setting it to `false` will not allow creating new tags.
userInput | <sub>Boolean</sub> | true | Disable manually typing/pasting/editing tags (tags may only be added from the whitelist)
autoComplete.enabled | <sub>Boolean</sub> | true | Tries to suggest the input's value while typing (match from whitelist) by adding the rest of term as grayed-out text
autoComplete.rightKey | <sub>Boolean</sub> | false | If `true`, when `→` is pressed, use the suggested value to create a tag, else just auto-completes the input. In mixed-mode this is ignored and treated as "true"
whitelist | <sub>Array</sub> | [] | An array of allowed tags (*Strings* or *Objects*). When using *Objects* in the *whitelist* array a `value` property is a must & should be unique. <br/>Also, the *whitelist used for auto-completion when `autoCompletion.enabled` is `true`
Expand Down
2 changes: 1 addition & 1 deletion dist/jQuery.tagify.min.js

Large diffs are not rendered by default.

250 changes: 1 addition & 249 deletions dist/react.tagify.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cd611a9

Please sign in to comment.