]> Untitled Git - lemmy.git/commitdiff
Only show tribute menu after a minlength of 3 characters.
authorDessalines <tyhou13@gmx.com>
Tue, 3 Mar 2020 21:36:11 +0000 (16:36 -0500)
committerDessalines <tyhou13@gmx.com>
Tue, 3 Mar 2020 21:36:11 +0000 (16:36 -0500)
- Fixes #562

ui/package.json
ui/src/utils.ts
ui/yarn.lock

index 8658d136329dbc5d512f0593191226d3b49fa876..e3cabae5bc927ce1bf8d673116954c9d972816a6 100644 (file)
@@ -43,7 +43,7 @@
     "terser": "^4.6.3",
     "tippy.js": "^6.0.0",
     "toastify-js": "^1.6.2",
-    "tributejs": "^4.1.1",
+    "tributejs": "^5.0.0",
     "twemoji": "^12.1.2",
     "ws": "^7.0.0"
   },
index 7ef3e303e65f72fa7b2712eeb925c26a66e947b2..d531a7ca9bdd6de4934a04b14effd338db98e443 100644 (file)
@@ -446,6 +446,7 @@ export function setupTribute(): Tribute {
         allowSpaces: false,
         autocompleteMode: true,
         menuItemLimit: mentionDropdownFetchLimit,
+        menuShowMinLength: 3,
       },
       // Users
       {
@@ -459,6 +460,7 @@ export function setupTribute(): Tribute {
         allowSpaces: false,
         autocompleteMode: true,
         menuItemLimit: mentionDropdownFetchLimit,
+        menuShowMinLength: 3,
       },
 
       // Communities
@@ -473,6 +475,7 @@ export function setupTribute(): Tribute {
         allowSpaces: false,
         autocompleteMode: true,
         menuItemLimit: mentionDropdownFetchLimit,
+        menuShowMinLength: 3,
       },
     ],
   });
index 6c1f222b24198d3d619400d1d7b4f55d193690e8..d36bef04eef3f3e7af923daf885a9caf729e9eb0 100644 (file)
@@ -4506,10 +4506,10 @@ tough-cookie@~2.4.3:
     psl "^1.1.24"
     punycode "^1.4.1"
 
-tributejs@^4.1.1:
-  version "4.1.1"
-  resolved "https://registry.yarnpkg.com/tributejs/-/tributejs-4.1.1.tgz#f169a4ad12e485241140ec1ab987b460950c974c"
-  integrity sha512-jc+PcaiNzMjCn2LAQb3i4ic94EsSfLW8Jlk1sK2cb6hLcZFalU9ThcF8rxuKkTUKv1GIvTwN8XseLzCXLxB4lw==
+tributejs@^5.0.0:
+  version "5.0.0"
+  resolved "https://registry.yarnpkg.com/tributejs/-/tributejs-5.0.0.tgz#2c5301a79c19d7a72d23e995bf7c9f47c2a34f23"
+  integrity sha512-aPUpq4+NTXRq1OcdoeiFg9d+wM+J0b7dpL7MNVxqo8JIgChtkx8HnsPVl/uZ4Z1ChTF9UI1ffbvTfJRHqJjjAw==
 
 ts-node@^8.6.2:
   version "8.6.2"