Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buttonAsLink option doesn't work on Inline Repeaters #2521

Open
danieldevine opened this issue Mar 5, 2024 · 0 comments · May be fixed by #2522
Open

buttonAsLink option doesn't work on Inline Repeaters #2521

danieldevine opened this issue Mar 5, 2024 · 0 comments · May be fixed by #2522

Comments

@danieldevine
Copy link

danieldevine commented Mar 5, 2024

Description

The buttonAsLink option has no effect in an inline repeater using the form builder.

Steps to reproduce

Add an inline repeater field in a block component and add the buttonAsLink option.

InlineRepeater::make()->name('buttons')
            ->fields([
                Input::make()->name('title'),
                Input::make()->name('url'),
            ])->buttonAsLink(true);

Expected result

The button should display as a centred text link

Actual result

Undefined method 'buttonAsLink'

Versions

Twill version: 3.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant