Skip to content

Commit f3306d1

Browse files
author
jfusco
committed
Compiling assets for release
1 parent a7c4ca4 commit f3306d1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

dist-components/Tags.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ var Tags = function (_Component) {
7878

7979
var value = this.input.value.trim();
8080

81+
if (!this.props.allowDupes) {
82+
if (this.state.tags.indexOf(value) >= 0) return;
83+
}
84+
8185
this.setState({
8286
tags: (0, _reactAddonsUpdate2.default)(this.state.tags, { $push: [value] })
8387
}, function () {

dist/react-tags.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)