title: Cannot read property 'focus' of null
body: <p>I am trying to focus on input window but its giving error :<a href="https://i.stack.imgur.com/cc9zZ.png" rel="nofollow"><img src="https://i.stack.imgur.com/cc9zZ.png" alt="enter image description here"></a></p>
  
  <pre><code>&lt;div class="intercom-conversation-footer" data-
      reactid=".2.1.$=1$conversation.2"&gt;&lt;div class="intercom-composer" data-
      reactid=".2.1.$=1$conversation.2.0"&gt;&lt;pre data-
      reactid=".2.1.$=1$conversation.2.0.0"&gt;&lt;span data-
      reactid=".2.1.$=1$conversation.2.0.0.0"&gt;write something&lt;/span&gt;&lt;br data-
      reactid=".2.1.$=1$conversation.2.0.0.1"&gt;&lt;/pre&gt;&lt;textarea placeholder="Write 
      a reply..." data-reactid=".2.1.$=1$conversation.2.0.1"&gt; &lt;/textarea&gt;&lt;span
       data-reactid=".2.1.$=1$conversation.2.0.2"&gt;&lt;/span&gt;&lt;button class="intercom-
      composer-emoji-button" data-reactid=".2.1.$=1$conversation.2.0.5"&gt;&lt;/button&gt;
      &lt;button class="intercom-composer-send-button" data-
      reactid=".2.1.$=1$conversation.2.0.7"&gt;&lt;/button&gt;&lt;/div&gt;&lt;/div&gt;
  </code></pre>
  
  <p>i want to focus on this how i can ?</p>
  
  <p>my code is :</p>
  
  <pre><code>var message = document.createEvent("TextEvent");  
  message.initTextEvent ("textInput", true, true, window, "Hello", 0, "en-US");
  document.getElementById(".2.1.$=1$conversation.2.0.0.0").focus();
  </code></pre>
  
  <p>but its giving error :</p>
  
  <pre><code>VM20681:1 Uncaught TypeError: Cannot read property 'focus' of null(…)
  </code></pre>