mirror of
https://github.com/lvgl/lvgl.git
synced 2026-08-17 18:22:42 +08:00
fix(dropdown): check if group exists before checking if it's editing (#10157)
This commit is contained in:
@@ -779,8 +779,8 @@ static void lv_dropdown_event(const lv_obj_class_t * class_p, lv_event_t * e)
|
||||
lv_dropdown_t * dropdown = (lv_dropdown_t *)obj;
|
||||
|
||||
if(code == LV_EVENT_FOCUSED) {
|
||||
lv_group_t * g = lv_obj_get_group(obj);
|
||||
bool editing = lv_group_get_editing(g);
|
||||
lv_group_t * g = lv_obj_get_group(obj);
|
||||
const bool editing = g && lv_group_get_editing(g);
|
||||
lv_indev_type_t indev_type = lv_indev_get_type(lv_indev_active());
|
||||
|
||||
/*Encoders need special handling*/
|
||||
|
||||
Reference in New Issue
Block a user