<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: 'allow-popups' error in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/allow-popups-error/m-p/3514635#M8269</link>
    <description>&lt;P&gt;Hi,Daniel,thank you very much.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2023 14:32:19 GMT</pubDate>
    <dc:creator>luojiandanPBI</dc:creator>
    <dc:date>2023-11-03T14:32:19Z</dc:date>
    <item>
      <title>'allow-popups' error</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/allow-popups-error/m-p/3511905#M8246</link>
      <description>&lt;P&gt;hello,I create a custom visual,enables users to use "echarts" in powerbi.&lt;/P&gt;&lt;P&gt;However, there are some features that can be implemented in ECharts, but not in PowerBI.&lt;/P&gt;&lt;P&gt;here is the error message:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Blocked opening '' in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set.&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="002.jpg" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/990709iAD7E793C4415984B/image-size/large?v=v2&amp;amp;px=999" role="button" title="002.jpg" alt="002.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and this is ok.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="0021.jpg" style="width: 934px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/990708iC87AB720CE944D4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0021.jpg" alt="0021.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;what's wrong with me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for you help.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/397"&gt;@dm-p&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 11:52:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/allow-popups-error/m-p/3511905#M8246</guid>
      <dc:creator>luojiandanPBI</dc:creator>
      <dc:date>2023-11-02T11:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: 'allow-popups' error</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/allow-popups-error/m-p/3513291#M8263</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/629505"&gt;@luojiandanPBI&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know Echarts, but I presume that there might still be a listener that they add to the hyperlink that is causing the problem. In your applied event, you may need to stop propagation and prevent any default events from firing (that's where I'd start looking, at least).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Something like this&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="font-family: inherit;"&gt;might&lt;/EM&gt;&lt;SPAN&gt; work (or give you something to look into further:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;p1.addEventListener("click", (event) =&amp;gt; {
    event.preventDefault();
    event.stopPropagation();
    this.host.launchUrl(ele.url);
});&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could also try attaching the JS debugger in that method and stepping through to see where the code goes . If this doesn't initiate debugging in the browser tools, it could suggest that there is an event with higher precendence than yours and you may need to think about when to apply yours.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 23:11:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/allow-popups-error/m-p/3513291#M8263</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2023-11-02T23:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: 'allow-popups' error</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/allow-popups-error/m-p/3514635#M8269</link>
      <description>&lt;P&gt;Hi,Daniel,thank you very much.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 14:32:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/allow-popups-error/m-p/3514635#M8269</guid>
      <dc:creator>luojiandanPBI</dc:creator>
      <dc:date>2023-11-03T14:32:19Z</dc:date>
    </item>
  </channel>
</rss>

