title: Property 'display' does not exist on type 'HTMLIonListElement'
body: <p>I have this piece of code:</p>
  <pre><code>    const [isThreeDotsMenuOpen, setIsThreeDotsMenuOpen] = useState&lt;boolean&gt;(false);
          const threeDotsIcon = useRef&lt;HTMLIonListElement&gt;(null);
          // const threeDotsIcon = document.getElementsByClassName(&quot;login-three-dots-menu&quot;)[0] as HTMLIonListElement;
          const openLeaveMenu = () =&gt; {
              setIsThreeDotsMenuOpen(!isThreeDotsMenuOpen);
              let button = threeDotsIcon.current;
              if(isThreeDotsMenuOpen){
                  if(button !== null)
                      button.display = &quot;block&quot;;
              }
              else{
                  if(button !== null)
                      button.display = &quot;none&quot;;
              }
          }
  </code></pre>
  <p>The ref is defined in an IonList element but it says that display does not exist in this element.
  How can I make this work?
  I've seen other posts like these: <a href="https://stackoverflow.com/questions/12989741/the-property-value-does-not-exist-on-value-of-type-htmlelement">post</a> and it didn't work</p>