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

New-PodeWebGrid inside New-PodeWebCell not working if in Form #611

Open
ml222 opened this issue Aug 31, 2024 · 0 comments
Open

New-PodeWebGrid inside New-PodeWebCell not working if in Form #611

ml222 opened this issue Aug 31, 2024 · 0 comments
Labels
bug 🐛 Something isn't working

Comments

@ml222
Copy link

ml222 commented Aug 31, 2024

Describe the Bug

Placing a New-PodeWebGrid inside a cell, that belongs to a parent grid, does not work if inside a forms -Content block.

The example below will only show "Hello 1" and "Hello 2" on the page. Also on clicking submit, the browser does not stay on page but is directed to a blank page: computername/pode.web-dynamic/elements/form/form_page_testpage_testform/submit

Steps To Reproduce

    New-PodeWebForm -Name 'TestForm' -ScriptBlock {
        Write-Host "Submitted"
    } -Content @(
        New-PodeWebGrid -Cells @(
            New-PodeWebCell -Content @(
                New-PodeWebText -Value 'Hello 1'
            )
            New-PodeWebCell -Content @(
                New-PodeWebText -Value 'Hello 2'
                New-PodeWebGrid -Cells @(
                    New-PodeWebCell -Content @(
                        New-PodeWebText -Value 'Hello 2.1'
                    )
                    New-PodeWebCell -Content @(
                        New-PodeWebText -Value 'Hello 2.2'
                    )
                )
            )
            New-PodeWebCell -Content @(
                New-PodeWebText -Value 'Hello 3'
            )
        )
    )

Expected Behavior

A grid cell should be able to contain another grid, even when the grid(s) belong to a form.

Platform

  • OS: Windows server 2022
  • Browser: Edge
  • Versions:
    • Pode: 2.10.1
    • Pode.Web: 1.0.0
    • PowerShell: 5.2

Additional Context

This worked fine in 0.83

@ml222 ml222 added the bug 🐛 Something isn't working label Aug 31, 2024
@ml222 ml222 changed the title New-PodeWebGrid inside New-PodeWebCell nor working if in Form New-PodeWebGrid inside New-PodeWebCell not working if in Form Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

1 participant