瀏覽代碼

scrool back to top on edit

FabioFratini 10 月之前
父節點
當前提交
032696efaa
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      resources/views/livewire/member.blade.php

+ 4 - 0
resources/views/livewire/member.blade.php

@@ -2151,6 +2151,10 @@
 
         function editData(id)
         {
+            window.scrollTo({
+                top: 0,
+                behavior: 'smooth'
+            });
             @this.edit(id);
         }