Skip to content

Commit

Permalink
fix(Views): Fix the way target was appended (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
wizzymore authored Dec 4, 2021
1 parent 798ec77 commit b1b4443
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/views/turbo-frame.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{-- This file should not be formatted! --}}
<turbo-frame id="{{ $id }}" @if($target ?? false) :target="$target" @endif>
<turbo-frame id="{{ $id }}" @if(isset($target)) target="{{ $target }}" @endif>
@include($partial, $partialData)
</turbo-frame>
4 changes: 2 additions & 2 deletions resources/views/turbo-stream.blade.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{{-- This file should not be formatted! --}}
<turbo-stream target="{{ $target }}" action="{{ $action }}">
@if ($partial ?? false)
@if (isset($partial))
<template>
@include($partial, $partialData)
@include($partial, $partialData ?? [])
</template>
@endif
</turbo-stream>

0 comments on commit b1b4443

Please sign in to comment.