fix(color): text input field may not display correctly when value is erased (#6430)
This commit is contained in:
@@ -156,8 +156,7 @@ void TextEdit::openEdit()
|
|||||||
lv_obj_get_width(lvobj), lv_obj_get_height(lvobj)},
|
lv_obj_get_width(lvobj), lv_obj_get_height(lvobj)},
|
||||||
text, length);
|
text, length);
|
||||||
edit->setChangeHandler([=]() {
|
edit->setChangeHandler([=]() {
|
||||||
std::string s(text, length);
|
update();
|
||||||
setText(s);
|
|
||||||
if (updateHandler) updateHandler();
|
if (updateHandler) updateHandler();
|
||||||
lv_group_focus_obj(lvobj);
|
lv_group_focus_obj(lvobj);
|
||||||
edit->hide();
|
edit->hide();
|
||||||
|
|||||||
Reference in New Issue
Block a user