fix(forms): prevent reparsing partial numeric hosts

This commit is contained in:
Andras Bacsai committed 2026-08-15 20:57:26 +02:00
1 parent 76030a30d4
commit 0824c91aca
2 files changed
+17 -1

No files matched your search

@@ -39,7 +39,11 @@
const path = this.path.trim();
const normalizedPath = path && !['/', '?', '#'].includes(path[0]) ? `/${path}` : path;
const next = `${this.scheme}://${this.host.trim()}${this.port ? `:${this.port}` : ''}${normalizedPath}`;
if (this.value !== next) this.value = next;
if (this.value !== next) {
this.syncing = true;
this.value = next;
this.$nextTick(() => this.syncing = false);
}
},
}" x-modelable="value" {{ $attributes->whereStartsWith('x-model') }}>
<div class="min-w-0">