Parcourir la source

scrool back to top on edit

FabioFratini il y a 10 mois
Parent
commit
032696efaa
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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);
         }