description
there is a div displaying text information on the page. Clicking div with the mouse will show the hidden textarea. After modification, the text will be synchronized back to div, losing focus and hiding textarea
using the click event of div and the onblur event of textarea, and the input event for content synchronization
question
enter the textarea modification state, type something casually,
then click to the first line with the mouse, and the focus is lost. I can"t output anything either.
how to solve this problem
demo address: https://m453y4q39y.codesandbo...