Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite committed Oct 18, 2024
1 parent 5e65b37 commit 083fa3a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Tags/Concerns/RendersForms.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ protected function getRenderableField($field, $errorBag = 'default', $manipulate
'instructions' => $field->instructions(),
'error' => $errors->first($field->handle()) ?: null,
'default' => $field->value() ?? $field->defaultValue(),
'old' => old($field->handle()), // dotted as well?
'old' => old($field->handle()), // TODO: Ensure dotted path for old input works here.
'value' => $value,
], $field->fieldtype()->extraRenderableFieldData());

Expand All @@ -168,9 +168,8 @@ protected function getRenderableField($field, $errorBag = 'default', $manipulate
return $data;
}

protected function convertDottedHandleToInputName($handle)
protected function convertDottedHandleToInputName(string $handle): string
{
ray($handle)->purple();
$parts = collect(explode('.', $handle));

$first = $parts->pull(0);
Expand Down

0 comments on commit 083fa3a

Please sign in to comment.