Skip to content

Commit

Permalink
Merge pull request #211 from smartprocure/feature/allow-special-keywo…
Browse files Browse the repository at this point in the history
…rd-characters

TagsInput: ignore whitespace-only tags
  • Loading branch information
stellarhoof authored Apr 30, 2024
2 parents 97ab956 + 3a0b25b commit 78622ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/eight-adults-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'contexture-react': patch
---

TagsInput: do not add whitespace-only tags
1 change: 1 addition & 0 deletions packages/react/src/greyVest/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ export let createTags = ({ input, splitCommas, sanitizeTagFn }) =>
splitCommas ? splitTagOnComma : _.identity,
_.castArray,
sanitizeTagFn ? _.map(sanitizeTagFn) : _.identity,
_.map(_.trim),
_.compact
)(input)

0 comments on commit 78622ca

Please sign in to comment.