Sfoglia il codice sorgente

scrool back to top on edit

FabioFratini 10 mesi fa
parent
commit
032696efaa
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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);
         }