Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Commit e47c3c4

Browse files
committed
Styling fixes, relax props, ignore streamed responses
1 parent d72ca99 commit e47c3c4

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

lib/Components/Input.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default {
2222
},
2323
2424
modelValue: {
25-
type: String,
25+
type: [String, Number],
2626
required: false,
2727
},
2828
},

lib/Components/Select.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default {
3030
},
3131
3232
modelValue: {
33-
type: [String, Array],
33+
type: [String, Number, Array],
3434
required: false,
3535
},
3636

lib/Components/Textarea.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default {
1616
},
1717
1818
modelValue: {
19-
type: String,
19+
type: [String, Number],
2020
required: false
2121
}
2222
},

resources/views/form/group.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<div {{ $attributes->only(['v-if', 'v-show']) }}>
1+
<div {{ $attributes->only(['v-if', 'v-show', 'class']) }}>
22
@includeWhen($label, 'splade::form.label', ['label' => $label])
33

4-
<div {{ $attributes->except(['v-if', 'v-show'])->class([
4+
<div {{ $attributes->except(['v-if', 'v-show', 'class'])->class([
55
'flex flex-wrap space-x-6' => $inline,
66
'space-y-1' => !$inline,
77
]) }}

src/Http/SpladeMiddleware.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use ProtoneMedia\Splade\Ssr;
1414
use Symfony\Component\HttpFoundation\BinaryFileResponse;
1515
use Symfony\Component\HttpFoundation\Response;
16+
use Symfony\Component\HttpFoundation\StreamedResponse;
1617

1718
class SpladeMiddleware
1819
{
@@ -36,7 +37,7 @@ public function handle(Request $request, Closure $next)
3637
/** @var Response $response */
3738
$response = $next($request);
3839

39-
if ($response instanceof BinaryFileResponse) {
40+
if ($response instanceof BinaryFileResponse || $response instanceof StreamedResponse) {
4041
return $response;
4142
}
4243

0 commit comments

Comments
 (0)