Skip to content

Commit

Permalink
hacky fix for forms with rich editor
Browse files Browse the repository at this point in the history
  • Loading branch information
mokhosh committed Jan 19, 2024
1 parent c94d09c commit b0f4963
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Concerns/HasEditRecordModal.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ public function recordClicked(int $recordId, array $data): void
{
$this->editModalRecordId = $recordId;

/**
* todo - the following line is a hacky fix
* figure why sometime form schema is created before this
* method when a RichText is present in the form schema
**/
$this->form($this->form);
$this->form->fill($this->getEditModalRecordData($recordId, $data));

$this->dispatch('open-modal', id: 'kanban--edit-record-modal');
Expand Down

0 comments on commit b0f4963

Please sign in to comment.