Tabs bug?

Hi guys! I'm using filament to generate blog posts, and recently I've added tabs to my posts to keep my admin clean. My issue is next: - I have a tab named content where I have a builder block to add different content - When I try to add a new block, the page is scrolling in the middle of the page. I will put here a video to see the problem.
Tab::make('Content')
->schema([
Builder::make('contents')->label(__('Article'))
->blocks([
Builder\Block::make('content_block_title')->label(__('Title'))->icon('heroicon-o-bookmark')
->schema([
RichEditor::make('content_title')
->label('Content Title')
->toolbarButtons([
'bold',
'h2',
'italic',
'link',
'redo',
'strike',
'undo',
]),
]),
Builder\Block::make('content_block_form')->label(__('PDF download'))
->icon('heroicon-o-bookmark')
->schema([
RichEditor::make('content_form_heading')
->label('Form Heading (make it heading to be displayed as <h3>)')
->toolbarButtons([
'bold',
'h2',
'italic',
'link',
'redo',
'strike',
'undo',
]),
RichEditor::make('content_form_description')
->label('Form Description')
->toolbarButtons([
'bold',
'h2',
'italic',
'link',
'redo',
'strike',
'undo',
]),
Select::make('badge_id')->label('Badge')
->relationship('badge', 'name')
->searchable()
->optionsLimit(700)
->preload(),
TextInput::make('content_form_title')
->label('Form Title (use <br> for newline)'),
TextInput::make('content_form_download_url')->label('Form Download URL')->required(),
]),
Tab::make('Content')
->schema([
Builder::make('contents')->label(__('Article'))
->blocks([
Builder\Block::make('content_block_title')->label(__('Title'))->icon('heroicon-o-bookmark')
->schema([
RichEditor::make('content_title')
->label('Content Title')
->toolbarButtons([
'bold',
'h2',
'italic',
'link',
'redo',
'strike',
'undo',
]),
]),
Builder\Block::make('content_block_form')->label(__('PDF download'))
->icon('heroicon-o-bookmark')
->schema([
RichEditor::make('content_form_heading')
->label('Form Heading (make it heading to be displayed as <h3>)')
->toolbarButtons([
'bold',
'h2',
'italic',
'link',
'redo',
'strike',
'undo',
]),
RichEditor::make('content_form_description')
->label('Form Description')
->toolbarButtons([
'bold',
'h2',
'italic',
'link',
'redo',
'strike',
'undo',
]),
Select::make('badge_id')->label('Badge')
->relationship('badge', 'name')
->searchable()
->optionsLimit(700)
->preload(),
TextInput::make('content_form_title')
->label('Form Title (use <br> for newline)'),
TextInput::make('content_form_download_url')->label('Form Download URL')->required(),
]),
in this code the end tags are missing because is just a piece of code. Please let me know if there is anything I can do. Thanks!
5 Replies
Patrick Boivin
Patrick Boivin17mo ago
Never really seen this before... If you move the Builder out of the Tabs, do you still have this issue?
awcodes
awcodes17mo ago
GitHub
Update repeater.blade.php by Cannonb4ll · Pull Request #7455 · fila...
Change $el to $root. Changes have been thoroughly tested to not break existing functionality. New functionality has been documented or existing documentation has been updated to reflect changes....
awcodes
awcodes17mo ago
Looks like this was fixed in v2 and somehow might be a regression in v3.
RoxanaAnghel
RoxanaAnghelOP17mo ago
@pboivin @awcodes I'm using v2, and if I move the builder out of tabs I don't have the issue anymore, but I want to use the builder and tabs together to keep all the content together. Thanks for the response, what should I do in this case?
awcodes
awcodes17mo ago
wait for the PR to be merged
Want results from more Discord servers?
Add your server