Skip to content

Issue with datepicker: auto-closing of the calendar when it’s not supposed to #7461

@seras42

Description

@seras42

OS:
Linux Aurora 42
KDE Plasma version 6.4.4

The app is run as native app

[dependencies]
eframe = "0.32.1"
egui_extras = { version = "0.32.1", features = ["svg","image","datepicker"] }

There seems to be an issue with the date picker. If you click on it, and select the year drop down button, and select a year, the date picker will close off automatically instead of remaining open. Its the same for when you choose the day or the month.

However this does not happen if you use the lower buttons or if you pick a date on the calendar itself. The automatic closing also doesn't not seem to auto save the value.

Image

Quick example code(i am aware the save function won't work here):

 TopBottomPanel::top("test_panel").show(ctx, |ui| {
        let mut test = NaiveDate::default();
        ui.add(
            DatePickerButton::new(&mut test)
                .id_salt("test")
        );
    });

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions