egui/crates
Aleksandr Strizhevskiy 763e2df9f9
Fix: prevent calendar popup from closing on dropdown change (#7409)
Currently, DatePickerButton will close without saving whenever a user
clicks a dropdown from year/month/date. The issue is caused because the
system mistakenly interprets the user as clicking off of the calendar.
This is unexpected and creates an unpleasant experience for the user.
This change now allows the user to use the dropdowns as expected; it
will close on save or cancel. The calendar still closes when user clicks
off of it, as before. The changes here are made in:
crates/egui_extras/src/datepicker/button.rs

I will admit that I am not an experienced Rust developer. The changes
were made with the help of ChatGPT 4.0.
I have tested the changes locally, as I am using the date picker in my
project.


* Closes <https://github.com/emilk/egui/issues/THE_RELEVANT_ISSUE>
* [x] I have followed the instructions in the PR template

---------

Co-authored-by: Lucas Meurer <hi@lucasmerlin.me>
2025-09-04 13:13:28 +02:00
..
ecolor Add 0.32.1 to changelogs 2025-08-15 13:42:49 +02:00
eframe Make more dependencies workspace dependencies (#7495) 2025-09-04 09:54:59 +02:00
egui Add `Memory::move_focus` (#7476) 2025-09-04 13:02:18 +02:00
egui-wgpu Add 0.32.1 to changelogs 2025-08-15 13:42:49 +02:00
egui-winit Improve egui-winit profile scope 2025-08-24 15:03:57 +02:00
egui_demo_app Remove the `deadlock_detection` feature (#7497) 2025-09-04 12:57:09 +02:00
egui_demo_lib fix: `SubMenu` should not display when ui is disabled (#7428) 2025-08-24 14:43:31 +02:00
egui_extras Fix: prevent calendar popup from closing on dropdown change (#7409) 2025-09-04 13:13:28 +02:00
egui_glow Add 0.32.1 to changelogs 2025-08-15 13:42:49 +02:00
egui_kittest Allow masking widgets in kittest snapshots (#7467) 2025-08-21 17:46:36 +02:00
egui_plot Move `egui_plot` to its own repo (#4828) 2024-07-15 18:45:19 +02:00
egui_web Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
emath Add `emath::fast_midpoint` (#7435) 2025-08-08 12:04:51 +02:00
epaint Remove the `deadlock_detection` feature (#7497) 2025-09-04 12:57:09 +02:00
epaint_default_fonts Add 0.32.1 to changelogs 2025-08-15 13:42:49 +02:00