JSFiddle - React, Tailwind, and code Playground

HTML

Click into this textarea. On focus, it claims it does not have focus. (Safari and Chrome only.)
<br>
<textarea rows="10" cols="40">hello</textarea>

JavaScript

$('textarea').focus(function() {
    $(this).val($(this).val() + '\n' + 'Am I focused? ' + $(this).is(':focus'));
    $(this).val($(this).val() + '\n' + 'Am I active? ' + $(this).is(':active'));
});