소스 검색

fix: the fixedbutton changes state and the view cannot scroll (#4297)

* fix: change fixbutton content can't scroll

* fix: change fixbutton content can't scroll
afe1 1 년 전
부모
커밋
67f3d63066
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      packages/@core/ui-kit/layout-ui/src/components/layout-sidebar.vue

+ 1 - 2
packages/@core/ui-kit/layout-ui/src/components/layout-sidebar.vue

@@ -223,12 +223,11 @@ function handleMouseenter() {
 
 function handleMouseleave() {
   emit('leave');
-
+  isLocked.value = false;
   if (expandOnHover.value) {
     return;
   }
 
-  isLocked.value = false;
   expandOnHovering.value = false;
   collapse.value = true;
   extraVisible.value = false;