diff --git a/resources/views/components/tabs/index.blade.php b/resources/views/components/tabs/index.blade.php index f2d33fb8c..fb05cf596 100644 --- a/resources/views/components/tabs/index.blade.php +++ b/resources/views/components/tabs/index.blade.php @@ -8,7 +8,14 @@ } @endphp -
+
has('ignore-hash')) + x-data="{ active: window.location.hash.split('#')[1] == undefined ? '{{ $active }}' : window.location.hash.split('#')[1] }" + @else + x-data="{ active: '{{ $active }}' }" + @endif +>
    has('override')) || ($attributes->has('override') && ! in_array('class', explode(',', $attributes->get('override'))))) ? $attributes->merge(['class' => 'inline-flex overflow-x-scroll large-overflow-unset']) : $attributes }}> {!! $navs !!}