title: How to use removeEventListener for clipboardData?
body: <p>Page had the button which copies text to clipboard with code:</p>
  
  <pre><code>export class ClipboardService {
      static copyToClipboard(toCopy: string) : void {
          document.addEventListener('copy', (e : ClipboardEvent) =&gt; {
              e.clipboardData.setData('text/plain', toCopy);
              e.preventDefault();
          });
          document.execCommand('copy');
      }
  } 
  </code></pre>
  
  <p>But after at use, this code <code>Ctrl+C</code> doesn't work. I need <code>removeEventListener</code> something like:</p>
  
  <pre><code>export class ClipboardService {
      static copyToClipboard(toCopy: string) : void {
          document.addEventListener('copy', (e : ClipboardEvent) =&gt; {
              e.clipboardData.setData('text/plain', toCopy);
              e.preventDefault();
          });
          document.execCommand('copy');
  
          document.removeEventListener('copy', (e : ClipboardEvent) =&gt; {
              e.clipboardData.??? // I stuck in this place.
          });
      }
  }
  </code></pre>
  
  <p>How to go back to standard behavior for clipboard when text from a specific field copied?</p>