fix(color): customisable switch name focus outline not cleared when editing using touch (#6090)

This commit is contained in:
philmoz
2025-04-16 09:31:10 +10:00
committed by GitHub
parent 81eb287c0f
commit dfb636d4a8
@@ -38,6 +38,15 @@ class TextArea : public FormField
lv_textarea_set_max_length(lvobj, length);
lv_textarea_set_placeholder_text(lvobj, "---");
setFocusHandler([=](bool focus) {
if (!focus && editMode) {
setEditMode(false);
hide();
lv_group_focus_obj(parent->getLvObj());
lv_obj_clear_state(parent->getLvObj(), LV_STATE_FOCUSED);
}
});
update();
}