List part of a dropdown does not scroll with parent container of the dropdown when expanded

If I place a dropdown inside a scrollable container (eg, tab view), expand the dropdown to display the options list and then scroll to a new tab, the expanded list stays in place on the screen. In lv_dropdown.c, line 443:

lv_obj_set_parent(dropdown->list, lv_obj_get_screen(dropdown_obj));

I believe this should be:
lv_obj_set_parent(dropdown->list, lv_obj_get_parent(dropdown_obj));

Code to reproduce - expand the dropdown then change tabs:

    lv_obj_t * tabview = lv_tabview_create(lv_scr_act(), LV_DIR_TOP, 3);

    lv_obj_t * tab0 = lv_tabview_add_tab(tabview, " ");
    lv_obj_t * tab1 = lv_tabview_add_tab(tabview, " ");

    lv_obj_t * dropdown = lv_dropdown_create(tab1);
    lv_dropdown_set_options(dropdown, "1\n2\n3");

Hi,

I’ve tracked it and found that to fix it some deeper rework is required in how focusing objects work in lvgl.

As workaround you can do this:

  lv_obj_add_flag(tab1, LV_OBJ_FLAG_CLICK_FOCUSABLE);