Skip to content

Commit

Permalink
Merge pull request #26 from ArtMin96/ax-load-visible
Browse files Browse the repository at this point in the history
Fix form field ax-load issue on spa-mode
  • Loading branch information
ysfkaya authored Nov 21, 2023
2 parents c191cbf + 4cd5f8a commit c9e00a2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion resources/views/phone-input.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@php
use Filament\Support\Facades\FilamentView;
$id = $getId();
$isConcealed = $isConcealed();
$isDisabled = $isDisabled();
Expand Down Expand Up @@ -50,7 +52,11 @@ class="inline-flex w-full"
<span
class="w-full"
x-ignore
ax-load
@if (FilamentView::hasSpaMode())
ax-load="visible"
@else
ax-load
@endif
ax-load-src="{{ \Filament\Support\Facades\FilamentAsset::getAlpineComponentSrc('filament-phone-input', package: 'ysfkaya/filament-phone-input') }}"
x-data="phoneInputFormComponent({
getInputTelOptionsUsing: (intlTelInput) => ({{ $getJsonPhoneInputConfiguration() }}),
Expand Down

0 comments on commit c9e00a2

Please sign in to comment.