Skip to content

Commit 4f699bf

Browse files
authored
Do not set id by default
1 parent c6d4de9 commit 4f699bf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Support/Html/Mixins/BaseElementMixin.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,11 @@ public function wireModel(): mixed
3838
{
3939
return function (string $key, ?string $modifiers = null) {
4040
/** @var BaseElement $this */
41-
$directive = str('wire:model')
41+
$attribute = str('wire:model')
4242
->when($modifiers, fn (Stringable $str) => $str->append(".{$modifiers}"))
4343
->squish();
4444

45-
return $this
46-
->attribute($directive->value(), $key)
47-
->attribute('id', $key);
45+
return $this->attribute($attribute->value(), $key);
4846
};
4947
}
5048
}

0 commit comments

Comments
 (0)