]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
only run filter when return key is hit
authorMarc Foley <m.foley.88@gmail.com>
Wed, 28 May 2025 14:05:16 +0000 (15:05 +0100)
committerMarc Foley <m.foley.88@gmail.com>
Wed, 28 May 2025 14:05:16 +0000 (15:05 +0100)
.ci/tags.html

index 190f7d187d8f384e2b6692d8c0fdbb6c766034a6..c48fac97f8945c5cc850a9948185ef454e2f9e9b 100644 (file)
@@ -63,7 +63,7 @@
           </li>
           <li>
               <div class="join" style="padding-top: 10px;">
-                  <input class="join-item input input-sm input-bordered w-full max-w-xs" v-model="tagFilter" placeholder="Search Fonts">
+                  <input class="join-item input input-sm input-bordered w-full max-w-xs" v-model.lazy="tagFilter" placeholder="Search Fonts">
               </div>
           </li>
           <li>
@@ -393,7 +393,9 @@ function axesCombos(axes) {
         if (this.currentCategory !== " All") {
           filtered = filtered.filter(family => family.category === this.currentCategory);
         }
-        filtered = filtered.filter(family => family.tag.match(this.tagFilter));
+        if (this.tagFilter !== "") {
+          filtered = filtered.filter(family => family.tag.match(this.tagFilter));
+        }
         filtered.sort(sortFunc);
 
         if (this.reverseTags) {