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

Datepicker has no day for selection with default start and last date #4639

Open
1 task done
OleksandrFURHALIUK opened this issue Dec 30, 2024 · 1 comment · May be fixed by #4661
Open
1 task done

Datepicker has no day for selection with default start and last date #4639

OleksandrFURHALIUK opened this issue Dec 30, 2024 · 1 comment · May be fixed by #4661
Assignees
Labels
bug: regression A feature that worked correctly doesn't anymore controls
Milestone

Comments

@OleksandrFURHALIUK
Copy link

OleksandrFURHALIUK commented Dec 30, 2024

Duplicate Check

Describe the bug

When create DatePicker with default parameters and add to page there are no day for selection.
image
image

here is type hint PyCharm ide and I think that default values for last date and first date must be interchanged.
image

When explicitly specify the first and last date everything works fine as on next screen
image

image

Is this a small bug or is it supposed to work like this?

Code sample

Code
from datetime import datetime

import flet as ft

def main(page: ft.Page) -> None:

    date_picker = ft.DatePicker()
    page.add(date_picker)

    page.open(date_picker)
    page.update()

ft.app(target=main)

To reproduce

run the code above

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Linux

Operating system details

Ubuntu 22.04

Flet version

0.25.2

Regression

I'm not sure / I don't know

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

@excessivechaos
Copy link

excessivechaos commented Jan 3, 2025

Yeah I have this same issue. Seems to be a regression as the defaults worked fine in prior version. Explicitly specify first and last dates so last is > than first is the workaround.

@ndonkoHenri ndonkoHenri self-assigned this Jan 5, 2025
@ndonkoHenri ndonkoHenri added controls bug: regression A feature that worked correctly doesn't anymore labels Jan 5, 2025
@ndonkoHenri ndonkoHenri added this to the Flet v0.25.3 milestone Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: regression A feature that worked correctly doesn't anymore controls
Projects
Status: 🆕 New
Development

Successfully merging a pull request may close this issue.

3 participants