Skip to content

Commit

Permalink
only require js when maskOptions are used
Browse files Browse the repository at this point in the history
should fix the unneeded  js load
  • Loading branch information
simonbuehler authored Feb 22, 2022
1 parent 20d449e commit 19dcea6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions resources/views/components/input.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
</span>
@endif
</div>
@tfonce('scripts:imask')
<script src="https://unpkg.com/imask"></script>
@endtfonce
@if($field->maskOptions)
@tfonce('scripts:imask')
<script src="https://unpkg.com/imask"></script>
@endtfonce
@endif

0 comments on commit 19dcea6

Please sign in to comment.