We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
range
1 parent f96f01c commit 6161751Copy full SHA for 6161751
src/View/Components/DatePicker.php
@@ -157,7 +157,7 @@ public function render(): View|Closure|string
157
x-data="{instance: undefined}"
158
x-init="instance = flatpickr($refs.input, {{ $setup() }});"
159
@if(isset($config["mode"]) && $config["mode"] == "range" && $attributes->get('live'))
160
- @change="const value = $event.target.value; if(value.split('to').length == 2) { $wire.set('{{ $modelName() }}', value) };"
+ @change="const value = $event.target.value; if(value.split(instance.l10n.rangeSeparator).length == 2) { $wire.set('{{ $modelName() }}', value) };"
161
@endif
162
x-on:livewire:navigating.window="instance.destroy();"
163
class="w-full"
0 commit comments