kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
AutosuggestPlugin: don't autosuggest hashtags for now
https://gitlab.com/soapbox-pub/soapbox/-/issues/1527environments/review-emoji-node-jkqetp/deployments/4054
rodzic
4b5602a086
commit
f3783f1a50
|
@ -342,11 +342,6 @@ const AutosuggestPlugin = ({
|
||||||
|
|
||||||
if (!node) return null;
|
if (!node) return null;
|
||||||
|
|
||||||
if (['hashtag'].includes(node.getType())) {
|
|
||||||
const matchingString = node.getTextContent();
|
|
||||||
return { leadOffset: 0, matchingString };
|
|
||||||
}
|
|
||||||
|
|
||||||
if (node.getType() === 'text') {
|
if (node.getType() === 'text') {
|
||||||
const [leadOffset, matchingString] = textAtCursorMatchesToken(
|
const [leadOffset, matchingString] = textAtCursorMatchesToken(
|
||||||
node.getTextContent(),
|
node.getTextContent(),
|
||||||
|
|
Ładowanie…
Reference in New Issue