Explorar o código

Merge pull request #8700 from overleaf/ii-cm6-source-editor-switch-toggle

[cm6] Prevent hopping to rich text when clicking the source button

GitOrigin-RevId: 2359e157c12026a1c5ceb8b6e40cd45956d75d1d
ilkin-overleaf %!s(int64=4) %!d(string=hai) anos
pai
achega
f2e6cf7a3b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      services/web/frontend/stylesheets/app/editor/toolbar.less

+ 1 - 0
services/web/frontend/stylesheets/app/editor/toolbar.less

@@ -282,6 +282,7 @@
 .toggle-switch-input {
   position: absolute;
   opacity: 0;
+  pointer-events: none;
 }
 
 .toggle-switch-input:checked + .toggle-switch-label {