From ad10a80a9925c247ef14837d3a14ff7e7375f001 Mon Sep 17 00:00:00 2001 From: kibigo! Date: Fri, 5 Jan 2018 20:04:13 -0800 Subject: Styling and autosuggest fixes for #293 --- app/javascript/flavours/glitch/features/composer/textarea/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/javascript/flavours/glitch/features/composer/textarea/index.js') diff --git a/app/javascript/flavours/glitch/features/composer/textarea/index.js b/app/javascript/flavours/glitch/features/composer/textarea/index.js index 955c06098..2e0b3e3d7 100644 --- a/app/javascript/flavours/glitch/features/composer/textarea/index.js +++ b/app/javascript/flavours/glitch/features/composer/textarea/index.js @@ -32,7 +32,7 @@ const handlers = { // When blurring the textarea, suggestions are hidden. handleBlur () { - //this.setState({ suggestionsHidden: true }); + this.setState({ suggestionsHidden: true }); }, // When the contents of the textarea change, we have to pull up new @@ -57,7 +57,7 @@ const handlers = { const right = value.slice(selectionStart).search(/[\s\u200B]/); const token = function () { switch (true) { - case left < 0 || /[@:]/.test(!value[left]): + case left < 0 || !/[@:]/.test(value[left]): return null; case right < 0: return value.slice(left); -- cgit