Skip to content

page.open and page.close are not working on Replit, even using the version 0.23.2 #3681

Description

@jvalle63

Duplicate Check

Describe the bug

I received the following message while running my flet script on vscode:
" Page.overlay.append(dialog) instead.
page.dialog = dlg_modal"

So I have changed all page.dialog commands from page.dialog = dlg_modal / dlg_modal.open = True / dlg_modal.close = True ,
to page.open() / page.close()
It has worked 100% on my environment.

But, when I put this code on a Replit environment, the following message appeared, even using the exactly same version 0.23.2:

pg.page.open(dlg_modal)
AttributeError: 'Page' object has no attribute 'open'

Code sample

Deprecated version:
page.dialog = dlg_modal
dlg_modal.open = True

New Version:
page.open(dlg_modal)

To reproduce

Just create a Replit on replit.com and put a code and use an alertdialog or datepicker control...

Expected behavior

No response

Screenshots / Videos

Screenshots / Video demonstration

[Upload media here]

Operating System

Linux

Operating system details

Poetry

Flet version

0.23.2

Regression

No, it isn't

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions