Skip to content

Commit 770ab4c

Browse files
committed
fix: alpine
1 parent 2de7ea6 commit 770ab4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/WithAlpineJsAttributes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function xDataMethod(string $method, ...$parameters): static
4949
public function xModel(?string $column = null): static
5050
{
5151
if ($this instanceof Field) {
52-
return $this->x('model', $this->column());
52+
return $this->x('model', $column ?? $this->column());
5353
}
5454

5555
return $this->x('model', $column);

0 commit comments

Comments
 (0)