Prechádzať zdrojové kódy

Merge pull request #6351 from overleaf/jk-cm6-context-menu-revamp

[web] Spelling: use button instead of `a` tag

GitOrigin-RevId: e63a89eb781bbecf33c49cfcd83e8ff7612fa554
Jakob Ackermann 4 rokov pred
rodič
commit
5701cc9e4b

+ 2 - 2
services/web/frontend/js/ide/editor/components/spellMenu.js

@@ -29,8 +29,8 @@ ng-class="{open: $ctrl.open, 'spell-check-menu-from-bottom': $ctrl.layoutFromBot
 >
 <ul class="dropdown-menu">
   <li ng-repeat="suggestion in $ctrl.highlight.suggestions | limitTo:8">
-    <a
-      href
+    <button
+      class="btn-link text-left dropdown-menu-button"
       ng-click="$ctrl.replaceWord({ highlight: $ctrl.highlight, suggestion: suggestion })"
     >
       {{ suggestion }}