New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

grape-browser

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grape-browser - npm Package Compare versions

Comparing version 3.17.14 to 3.17.15

@@ -236,3 +236,4 @@ 'use strict';

query = _ref3.query,
content = _ref3.content;
content = _ref3.content,
channelChanged = _ref3.channelChanged;

@@ -257,2 +258,3 @@ // Handler might be called when content has been just set, so it is changed

if (channelChanged) return;
if (content === undefined) _this.props.onChange();else _this.setState({ content: content }, _this.props.onChange);

@@ -259,0 +261,0 @@ };

@@ -111,3 +111,6 @@ 'use strict';

this.props.channel.id && nextProps.channel.id) {
this.onChange({ value: nextProps.content });
// When a user switches to another channel the input changes the content,
// but the user actually didn't made any change to the input and therefor
// an update even triggering typing should be avoided
this.onChange({ value: nextProps.content, channelChanged: true });
}

@@ -274,3 +277,5 @@ if (nextProps.content !== this.state.content) {

this.onChange = function (_ref) {
var value = _ref.value;
var value = _ref.value,
_ref$channelChanged = _ref.channelChanged,
channelChanged = _ref$channelChanged === undefined ? false : _ref$channelChanged;

@@ -284,3 +289,3 @@ var emojiObjects = (0, _utils.getEmojiObjects)(value);

var query = (0, _parse2.default)(word);
_this3.props.onChange({ query: query, content: content });
_this3.props.onChange({ query: query, content: content, channelChanged: channelChanged });
});

@@ -287,0 +292,0 @@ };

{
"name": "grape-browser",
"version": "3.17.14",
"version": "3.17.15",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "files": [