Skip to content

Commit ac7247e

Browse files
committed
Fix GetId
1 parent e722b55 commit ac7247e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Fields/BaseField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public function renderAttributes(): array
257257

258258
public function getId(): string
259259
{
260-
return $this->id ?? $this->name . '_' . uniqid();
260+
return $this->attributes['id'] ?? $this->id ?? $this->name . '_' . uniqid();
261261
}
262262

263263
public function getFieldValue($value = null): string

0 commit comments

Comments
 (0)