hash control for form posting

This commit is contained in:
Burak Civan 2022-10-10 13:43:28 +03:00
parent 73d0e97c3d
commit ba0e24ae94
4 changed files with 10 additions and 1 deletions

4
public/css/app.css vendored
View File

@ -50034,6 +50034,10 @@ body{
width: 20rem;
}
.lg\:w-9{
width: 2.25rem;
}
.lg\:w-8\/12{
width: 66.666667%;
}

View File

@ -479,6 +479,10 @@ export default class Form {
this.loading = true;
window.location.href = response.data.redirect;
if (window.location.hash !== undefined) {
location.reload();
}
}
this.response = response.data;

View File

@ -3,7 +3,7 @@
@if ($trigger->attributes->has('override') && in_array('class', explode(',', $trigger->attributes->get('override'))))
class="{{ $trigger->attributes->get('class') }}"
@else
class="w-9 h-9 flex items-center justify-center px-2 py-2 bg-gray-100 hover:bg-gray-200 rounded-xl text-purple text-sm font-medium leading-6"
class="w-full lg:w-9 h-9 flex items-center justify-center px-2 py-2 bg-gray-100 hover:bg-gray-200 rounded-xl text-purple text-sm font-medium leading-6"
@endif
data-dropdown-toggle="{{ $id }}"
{{ $trigger->attributes }}

View File

@ -4,5 +4,6 @@ lg:pl-24
lg:my-12
lg:mt-4
lg:pl-6
lg:w-9
ltr:-right-1.5
rtl:-left-1.5