Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphjsmit committed Sep 9, 2022
2 parents eb4269f + 4e67bcd commit bfdda3b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `tall-interactive` will be documented in this file.

## 0.8.10 - 2022-08-19

– Fix type-error bug after Filament refactored internal implementation.

## 0.8.9 - 2022-08-15

– Add ButtonAction color support.
Expand Down
10 changes: 5 additions & 5 deletions src/Livewire/Concerns/HasForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ trait HasForm

public function bootedHasForm(): void
{
if ( $this->shouldFillForm && $this->formClass ) {
if ($this->shouldFillForm && $this->formClass) {
$this->mountForm();
}

if ( $this->formClass ) {
if ($this->formClass) {
$this->registerFormMessages();
}
}
Expand All @@ -40,7 +40,7 @@ public function executeButtonAction(string $buttonActionName): void
collect($this->call('getButtonActions'))
->reject(fn (ButtonAction $buttonAction) => $buttonAction->isHidden())
->each(function (ButtonAction $buttonAction) use ($buttonActionName): void {
if ( $buttonAction->getName() !== $buttonActionName ) {
if ($buttonAction->getName() !== $buttonActionName) {
return;
}

Expand Down Expand Up @@ -76,7 +76,7 @@ protected function getForms(): array
$this->makeForm()
->schema($this->call('getFormSchema') ?: [])
->tap(function (ComponentContainer $componentContainer): ComponentContainer {
if ( $this->model ) {
if ($this->model) {
$componentContainer->model($this->model);
}

Expand All @@ -92,7 +92,7 @@ protected function handleFormSubmitted(): void
{
$this->handleCloseOnSubmit();

if ( ! $this->model ) {
if (! $this->model) {
$this->reset('data', 'shouldFillForm');

$this->mountForm();
Expand Down

0 comments on commit bfdda3b

Please sign in to comment.