aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/msgbox/lv_msgbox.c
diff options
context:
space:
mode:
authorterry.rong <rongyichang@xiaomi.com>2024-01-17 21:38:05 +0800
committerGitHub <noreply@github.com>2024-01-17 14:38:05 +0100
commit122acbd00f2d209ddb25f637bfe72c06428a43cc (patch)
treec0da3af8efe4e1e30d34252b4a4df1c60729404c /src/widgets/msgbox/lv_msgbox.c
parent0379088110631f9d60d3d01b295efe47d46bdefc (diff)
downloadlvgl-122acbd00f2d209ddb25f637bfe72c06428a43cc.tar.gz
lvgl-122acbd00f2d209ddb25f637bfe72c06428a43cc.zip
fix(event): fix assert in event bubble mode. (#5357)
Signed-off-by: rongyichang <rongyichang@xiaomi.com>
Diffstat (limited to 'src/widgets/msgbox/lv_msgbox.c')
-rw-r--r--src/widgets/msgbox/lv_msgbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/msgbox/lv_msgbox.c b/src/widgets/msgbox/lv_msgbox.c
index c939b16a9..b1cc16caf 100644
--- a/src/widgets/msgbox/lv_msgbox.c
+++ b/src/widgets/msgbox/lv_msgbox.c
@@ -270,7 +270,7 @@ void lv_msgbox_close_async(lv_obj_t * obj)
static void msgbox_close_click_event_cb(lv_event_t * e)
{
- lv_obj_t * btn = lv_event_get_target(e);
+ lv_obj_t * btn = lv_event_get_current_target(e);
lv_obj_t * mbox = lv_obj_get_parent(lv_obj_get_parent(btn));
lv_msgbox_close(mbox);
}