When a textarea that is copied from password-mode textarea, this textarea can't type by touch-keyboard

Description

When a textarea that is copied from a password-mode textarea,
this textarea can’t type by touch-keyboard. It occurs error at run-time.

What MCU/Processor/Board and compiler are you using?

  • ESP32
  • lvgl 6.0.2

What do you experience?

New textarea that is copied from the old password-mode textarea,
occurs error at runtime when using the touch keyboard.

What do you expect?

Maybe the textares’s ext->pwd_tmp doesn’t be created and be copied ?

Code to reproduce

  lv_obj_t *password_ta = lv_ta_create(lv_scr_act(), NULL);
    lv_ta_set_pwd_mode(password_ta, true);
    lv_ta_set_text(password_ta, "1234567890");
    lv_ta_set_placeholder_text(password_ta, "Password");
    lv_obj_set_width(password_ta, 240-12);
    lv_obj_set_pos(password_ta, 6,6);

  lv_obj_t *password_ta2 = lv_ta_create(lv_scr_act(), password_ta);
  
  lv_obj_t *kb = lv_kb_create(lv_scr_act(), NULL);
    lv_kb_set_ta(kb, password_ta2);
    lv_obj_set_size(kb,240,180);
    lv_obj_align(kb, NULL, LV_ALIGN_IN_BOTTOM_MID,0,0);

Screenshot and/or video

I assume you found this on the ta_placeholder_copy branch and not master?

Both ta_placeholder_copy and master.

I’ve fixed it in ta_placeholder_copy branch.

1 Like