Backport #26602 by @wxiaoguang Otherwise, "pasted" content won't update the UI. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> (cherry picked from commit c99374b151)
c99374b151