En el siguiente fragmento de código html, paste-element no está habilitado para pegar cuando se llama .focus en él, ¿puede algún experto en html ayudarme por qué no funcionará de esta manera?
<!DOCTYPE html> <html> <body> <h1>Display Text Input Fields</h1> <div id="paste-element" tabindex="0" onpaste="alert(1)" > --> Clicking or tab into this will enable element for paste paste here </div> <p onclick="document.getElementById('paste-element').focus()">Click here, wont enable paste</p> </body> </html>Se está discutiendo la misma pregunta en el foro de reacción: https://github.com/facebook/react/issues/9769