Make lv_ta_get_placeholder_text do what it says
Thanks to @TridentTD on the forum for reporting this: https://forum.littlevgl.com/t/bug-at-textareas-lv-ta-get-placeholder-text/707
This commit is contained in:
@@ -917,7 +917,7 @@ const char * lv_ta_get_placeholder_text(lv_obj_t * ta)
|
||||
|
||||
const char * txt = NULL;
|
||||
|
||||
if(ext->placeholder) txt = lv_label_get_text(ext->label);
|
||||
if(ext->placeholder) txt = lv_label_get_text(ext->placeholder);
|
||||
|
||||
return txt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user