class PageResource extends Resource
{
public static function form(Form $form): Form
{
$form
->schema([
TextInput::make('title'),
]);
}
}
class EditPage extends EditRecord
{
protected function getTitle(): string
{
return $this->getRecord()->title;
}
}
This displays the current title of the record as the title of the page and updates when the page is saved.
Once the sticky header has stuck for the first time the title no longer updates on save and a full page refresh is required before it will update. This occurs even if the header is stuck and then unstuck.
Consider the following:
This displays the current title of the record as the title of the page and updates when the page is saved.
Once the sticky header has stuck for the first time the title no longer updates on save and a full page refresh is required before it will update. This occurs even if the header is stuck and then unstuck.
I suspect the offending line is https://github.com/awcodes/filament-sticky-header/blob/eb51d9bf3c603207fccb40bc99ccd653f62d2b8d/resources/js/plugin.js#L43