Fix caption lost issue related to focus changing (#12967)

Change-Id: I2c3843c078e72dc1f394b28ea7669cc232e1e739