react-cimpress-comment
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -276,10 +276,6 @@ 'use strict'; | ||
{ className: classes, value: this.state.editedComment || this.state.comment, onChange: this.change.bind(this), | ||
displayTransform: function displayTransform(id, display, type) { | ||
return '@' + display + ' '; | ||
}, allowSpaceInQuery: true }, | ||
_react2.default.createElement(_reactMentions.Mention, { trigger: '@', | ||
data: function data(search, callback) { | ||
allowSpaceInQuery: true }, | ||
_react2.default.createElement(_reactMentions.Mention, { trigger: '@', data: function data(search, callback) { | ||
_this6.mentionsClient.fetchMatchingMentions(search).then(callback); | ||
}, | ||
appendSpaceOnAdd: true | ||
} | ||
}) | ||
@@ -286,0 +282,0 @@ ), |
@@ -119,7 +119,3 @@ 'use strict'; | ||
value: function onInputChange(event, newValue, newPlainTextValue, mentions) { | ||
if (event.keyCode && event.keyCode === 13) { | ||
// The "Enter" key was pressed. | ||
this.postComment(this.state.commentToAdd); | ||
} | ||
this.setState({ commentToAdd: event.target.value }); | ||
this.setState({ commentToAdd: newPlainTextValue }); | ||
} | ||
@@ -274,10 +270,7 @@ }, { | ||
{ className: 'mentions mentions-min-height', value: this.state.commentToAdd, onChange: this.onInputChange.bind(this), | ||
displayTransform: function displayTransform(id, display, type) { | ||
return '@' + display + ' '; | ||
}, allowSpaceInQuery: true }, | ||
allowSpaceInQuery: true }, | ||
_react2.default.createElement(_reactMentions.Mention, { trigger: '@', | ||
data: function data(search, callback) { | ||
_this6.mentionsClient.fetchMatchingMentions(search).then(callback); | ||
}, | ||
appendSpaceOnAdd: true | ||
} | ||
}) | ||
@@ -284,0 +277,0 @@ ), |
{ | ||
"name": "react-cimpress-comment", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Visualizes comment(s) for a particular platform resource", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61326
1125