Commit f424f5a2 authored by Daniel Moberly's avatar Daniel Moberly Committed by Daniel Moberly
Browse files

Issue #3272174 by clement.ferrier, Daniel.Moberly: Short query string in...

Issue #3272174 by clement.ferrier, Daniel.Moberly: Short query string in autocomplete freezes browser tab
parent 5bf3b799
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -157,6 +157,11 @@ class AutocompleteController extends ControllerBase {
            'value' => $thisIcon['name'],
            'label' => implode('', $iconRenders) . $thisIcon['name'],
          ];

          // Cap the results if this is a single character.
          if (strlen($typed_string) == 1 && count($results) >= 25) {
            break;
          }
        }
      }
    }