diff --git a/src/Support/Html/Mixins/BaseElementMixin.php b/src/Support/Html/Mixins/BaseElementMixin.php index fff0263..aa0b650 100644 --- a/src/Support/Html/Mixins/BaseElementMixin.php +++ b/src/Support/Html/Mixins/BaseElementMixin.php @@ -38,13 +38,11 @@ public function wireModel(): mixed { return function (string $key, ?string $modifiers = null) { /** @var BaseElement $this */ - $directive = str('wire:model') + $attribute = str('wire:model') ->when($modifiers, fn (Stringable $str) => $str->append(".{$modifiers}")) ->squish(); - return $this - ->attribute($directive->value(), $key) - ->attribute('id', $key); + return $this->attribute($attribute->value(), $key); }; } }