<?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: Popup header can't be removed in arcgis javascript API 4.28 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1362416#M83161</link>
    <description>&lt;P&gt;I think I figured it out.&lt;/P&gt;&lt;P&gt;We had been making custom popups using 2 features of the built-in popup&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P&gt;popup’s content property to render custom content&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;hiding the header/actions bars by overriding the CSS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So when the header moved inside the shadow DOM, we got stuck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After some experiments, it turned out the solution is actually quite simple&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P&gt;we do not use the Popup’s content property&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;we instead use the container property to render our custom popup&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;we hide the “entire” default popup by overriding the relevant CSS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import React from 'react'
import { createPortal } from 'react-dom';
import './App.css'
import MapView from '@arcgis/core/views/MapView';
import Map from '@arcgis/core/Map';
import Popup from "@arcgis/core/widgets/Popup.js";

/*
The important stuff

// if you do not do this, the popup will only stay in one (center top) anchor
// if you do this, the anchor will change out of the box as you move around the map
.esri-popup__main-container {  
  height: 0px;
  display: contents !important;
}

.esri-popup__main-container &amp;gt; .esri-widget--panel {
  display: none;
}

on your custom popup, z-index is required to ensure the popup renders over the popup-pointer

*/

const CustomPopup = (props) =&amp;gt; {
  return (
    // z-index is required to ensure popup renders over the popup-pointer
    &amp;lt;div style={{ zIndex: 1, backgroundColor: 'white', padding: '20px' }}&amp;gt;
      This is my custom JSX Component popup
    &amp;lt;/div&amp;gt;
  )
};

const PopupPortal = ({ mount, children }) =&amp;gt; {
  return createPortal(children, mount);
};

const App = () =&amp;gt; {

  const popupRoot = document.createElement("div");
  
  React.useEffect(() =&amp;gt; {

    const mapView = new MapView({
      container: "mapDiv",
      map: new Map({
        basemap: "streets-navigation-vector"
      })
    });

    mapView.popup = new Popup({
      actions: [],
      container: popupRoot,
    });

    mapView.popupEnabled = false;
    mapView.on("click", (event) =&amp;gt; {            
      mapView.openPopup({
        location: event.mapPoint
      });
    });

  }, [])

  return (    
      &amp;lt;div id="mapDiv"&amp;gt;  
        &amp;lt;PopupPortal mount={popupRoot}&amp;gt;
          &amp;lt;CustomPopup /&amp;gt;
        &amp;lt;/PopupPortal&amp;gt;      
      &amp;lt;/div&amp;gt;
  )
}

export default App&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="popup-yeah.gif" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/89444iD246F973F4209E42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="popup-yeah.gif" alt="popup-yeah.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 19 Dec 2023 07:57:51 GMT</pubDate>
    <dc:creator>ViktorSafar</dc:creator>
    <dc:date>2023-12-19T07:57:51Z</dc:date>
    <item>
      <title>Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1350179#M82789</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I would like to remove the header of the popup, but it is not possible to achieve this by overriding the CSS class directly. This limitation arises because the header is wrapped within a shadow root, as implemented by the calcite components. I am using arcgis javascript API version 4.28.9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SoulaimaneBenmessaoud_0-1700136211458.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86185i464DFAC9CB1C4CB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SoulaimaneBenmessaoud_0-1700136211458.png" alt="SoulaimaneBenmessaoud_0-1700136211458.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SoulaimaneBenmessaoud_1-1700136275097.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86186iDDC759E6227BC3A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SoulaimaneBenmessaoud_1-1700136275097.png" alt="SoulaimaneBenmessaoud_1-1700136275097.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 12:11:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1350179#M82789</guid>
      <dc:creator>SoulaimaneBenmessaoud</dc:creator>
      <dc:date>2023-11-16T12:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1350611#M82801</link>
      <description>&lt;P&gt;I don't think there's a documented way to do this.&amp;nbsp; However, if the following executes prior to the creation of the Popup, it appears to achieve the desired results:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require(["esri/chunks/panel"], function(panel) {
    panel.Panel.prototype.renderHeaderNode = function() { return null; };
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 00:43:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1350611#M82801</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-11-17T00:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1350690#M82805</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Okay, I see, but I am currently using the &lt;/SPAN&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/642472"&gt;@ArcGIS&lt;/a&gt;/core&lt;SPAN&gt; library. Even when I try to find the module, I get an error that it can't be found. I see that there is not a module named 'panel' inside the 'chunks' directory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require(['@arcgis/chunks/panel'], function (panel) {
  panel.Panel.prototype.renderHeaderNode = function () {
    return null;
  };
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 10:09:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1350690#M82805</guid>
      <dc:creator>SoulaimaneBenmessaoud</dc:creator>
      <dc:date>2023-11-17T10:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1350808#M82808</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone, I'm having the same problem, the footer also appears and this makes the popup look very bad and altered, but I never added it. This solution is not working for me, any alternative?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86360i3FA58D8E9A90D8CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="example.png" alt="example.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 14:49:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1350808#M82808</guid>
      <dc:creator>MatiasTonelli1</dc:creator>
      <dc:date>2023-11-17T14:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1350966#M82810</link>
      <description>&lt;P&gt;In that case, you'll need to use ESM syntax:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import * as panel from "@arcgis/core/chunks/panel.js";

panel.P.prototype.renderHeaderNode = function() { return null; };&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 17 Nov 2023 17:53:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1350966#M82810</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-11-17T17:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1351058#M82813</link>
      <description>&lt;P&gt;You can modify the style of the shadow DOM, but only after the popup is visible.&amp;nbsp; The only problem is once its visible, the container hasn't loaded yet.&amp;nbsp; I put in a 200ms timeout, but it flashes the header real quick, but it will be hidden for all the other times the popup opens.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;reactiveUtils
  .whenOnce(() =&amp;gt; view.popup?.visible)
  .then(() =&amp;gt; {
    setTimeout(() =&amp;gt; {
      view.popup.container
        .querySelector(".esri-features__content-feature")
        .shadowRoot.querySelector("calcite-panel")
        .shadowRoot.querySelector(".header").style.display = "none";
    }, 200);
  });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 20:08:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1351058#M82813</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2023-11-17T20:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1351380#M82819</link>
      <description>&lt;P&gt;There is no `panel.js` under `@arcgis/core/chunks`&lt;/P&gt;&lt;P&gt;v&lt;SPAN&gt;4.28.9&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 10:37:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1351380#M82819</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2023-11-20T10:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1351391#M82820</link>
      <description>&lt;P&gt;We have a project on 4.24 where the popup header is outside the shadow DOM while in 4.28 it is inside the shadow DOM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViktorSafar_1-1700479112778.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86535i79150BFEE5112C3A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ViktorSafar_1-1700479112778.png" alt="ViktorSafar_1-1700479112778.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears that an API to customize the popup header might be missing, similar to the API to customize the content.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 11:18:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1351391#M82820</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2023-11-20T11:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1351412#M82822</link>
      <description>&lt;P&gt;At 4.28 the popup was refactored to use the Calcite Design System.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/release-notes/#popup-design-updates" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/release-notes/#popup-design-updates&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 12:43:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1351412#M82822</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2023-11-20T12:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1351565#M82833</link>
      <description>&lt;P&gt;I suppose there's some difference I can't explain, but &lt;A href="https://js.arcgis.com/4.28/@arcgis/core/chunks/panel.js" target="_self"&gt;here it is&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 17:18:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1351565#M82833</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-11-20T17:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1351686#M82842</link>
      <description>&lt;P&gt;While I was able to make that import work and use the advised update to&amp;nbsp;prototype.renderHeaderNode, it does not help as it corrupts the entire popup:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViktorSafar_1-1700513422672.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86612i3EC13CB323AC2B87/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ViktorSafar_1-1700513422672.png" alt="ViktorSafar_1-1700513422672.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 20:51:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1351686#M82842</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2023-11-20T20:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1351692#M82843</link>
      <description>&lt;P&gt;Hmm...it worked well in a simplistic example I set up locally.&amp;nbsp; Does it cause any error information to be written to the developer tools console when you try it?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 21:00:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1351692#M82843</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-11-20T21:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1351902#M82851</link>
      <description>&lt;P&gt;I spoke too soon, it did not work. Import directly from the URL, while it &lt;A href="https://stackoverflow.com/questions/34607252/es6-import-module-from-url" target="_self"&gt;should be possible&lt;/A&gt;, fails.&lt;/P&gt;&lt;P&gt;If I download the file and save it as node_modules/@arcgis/core/chunks/panel.js, compiler starts complaining&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViktorSafar_0-1700568802900.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86671i1C670C5DFAC74049/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ViktorSafar_0-1700568802900.png" alt="ViktorSafar_0-1700568802900.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a simple repro solution&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/viktor-safar-geodata/popup-header" target="_blank"&gt;https://github.com/viktor-safar-geodata/popup-header&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 12:18:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1351902#M82851</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2023-11-21T12:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1353612#M82925</link>
      <description>&lt;P&gt;I see...there are some extra layers of complexity added by Node and React that I'm not sure how to help you navigate.&amp;nbsp; If you don't find a way to get this working,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/233731"&gt;@Justin_Greco&lt;/a&gt;&amp;nbsp;provided another viable solution.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 17:26:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1353612#M82925</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-11-27T17:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1353692#M82930</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I am sorry but having a post render procedure remove the header is absolutely not a viable solution. We are building commercial systems, this kind of behaviour is not acceptable.&lt;/P&gt;&lt;P&gt;Would the JS API team be opened to adding an API for us to manipulate the header just like we can manipulate the content? Or, regarding those building the popup content from scratch like we are, all we really need is the ability to hide the header one way or another. This had basically worked for years but got broken in 4.28 when the popup was revamped to use calcite.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 19:07:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1353692#M82930</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2023-11-27T19:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1354445#M82960</link>
      <description>&lt;P&gt;Attached is that simplistic test I mentioned earlier.&amp;nbsp; It has to be run over https (i.e. from a web server and not from a local machine via file: protocol).&amp;nbsp; Maybe it'll help somehow.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 23:40:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1354445#M82960</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-11-28T23:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1354728#M82968</link>
      <description>&lt;P&gt;Looks like this might be coming in the February release of 4.29, I noticed this in the &lt;A href="https://github.com/Esri/feedback-js-api-next/blob/main/CHANGELOG.md" target="_self"&gt;CHANGELOG&lt;/A&gt; for the next version "Added new VisibleElements to the Popup: actionBar, collapseButton, heading, spinner"&lt;/P&gt;&lt;P&gt;I tested this code on the next version and the popup header does not appear:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  const view = new MapView({
    map: webmap,
    container: "viewDiv",
    popup: {
      dockOptions: {
        buttonEnabled: false
      },
      visibleElements: {
        closeButton: false,
        collapseButton: false,
        heading: false,
        actionBar: false
      }
    }
  });  &lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JustinGreco1_0-1701279571103.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/87471iC227AF0D38845744/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JustinGreco1_0-1701279571103.png" alt="JustinGreco1_0-1701279571103.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 17:41:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1354728#M82968</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2023-11-29T17:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1362237#M83157</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6522"&gt;@JoelBennett&lt;/a&gt;&amp;nbsp; - thanks, that example works nicely. However, the same approach does not work when the packages are installed locally and a framework is used - which, I would argue, is the way most applications using ESM are written.&lt;/P&gt;&lt;P&gt;Here is a super simple repro:&amp;nbsp;&lt;A href="https://github.com/viktor-safar-geodata/popup-header-problem" target="_blank"&gt;https://github.com/viktor-safar-geodata/popup-header-problem&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I do not have enough knowledge of the JS ecosystem to describe how this is connected. In your "ESM test" solution the problem does not occur as the resourceUrl property is populated. However, in a framework solution, that property is empty resulting in the below error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="popup-chunks-problem-simple-ESM-solution-working.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/89392i77D3998ED2729ADD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="popup-chunks-problem-simple-ESM-solution-working.png" alt="popup-chunks-problem-simple-ESM-solution-working.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViktorSafar_0-1702929798619.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/89396iC0BBAB9633937D48/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ViktorSafar_0-1702929798619.png" alt="ViktorSafar_0-1702929798619.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 20:04:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1362237#M83157</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2023-12-18T20:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1362416#M83161</link>
      <description>&lt;P&gt;I think I figured it out.&lt;/P&gt;&lt;P&gt;We had been making custom popups using 2 features of the built-in popup&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P&gt;popup’s content property to render custom content&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;hiding the header/actions bars by overriding the CSS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So when the header moved inside the shadow DOM, we got stuck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After some experiments, it turned out the solution is actually quite simple&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P&gt;we do not use the Popup’s content property&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;we instead use the container property to render our custom popup&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;we hide the “entire” default popup by overriding the relevant CSS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import React from 'react'
import { createPortal } from 'react-dom';
import './App.css'
import MapView from '@arcgis/core/views/MapView';
import Map from '@arcgis/core/Map';
import Popup from "@arcgis/core/widgets/Popup.js";

/*
The important stuff

// if you do not do this, the popup will only stay in one (center top) anchor
// if you do this, the anchor will change out of the box as you move around the map
.esri-popup__main-container {  
  height: 0px;
  display: contents !important;
}

.esri-popup__main-container &amp;gt; .esri-widget--panel {
  display: none;
}

on your custom popup, z-index is required to ensure the popup renders over the popup-pointer

*/

const CustomPopup = (props) =&amp;gt; {
  return (
    // z-index is required to ensure popup renders over the popup-pointer
    &amp;lt;div style={{ zIndex: 1, backgroundColor: 'white', padding: '20px' }}&amp;gt;
      This is my custom JSX Component popup
    &amp;lt;/div&amp;gt;
  )
};

const PopupPortal = ({ mount, children }) =&amp;gt; {
  return createPortal(children, mount);
};

const App = () =&amp;gt; {

  const popupRoot = document.createElement("div");
  
  React.useEffect(() =&amp;gt; {

    const mapView = new MapView({
      container: "mapDiv",
      map: new Map({
        basemap: "streets-navigation-vector"
      })
    });

    mapView.popup = new Popup({
      actions: [],
      container: popupRoot,
    });

    mapView.popupEnabled = false;
    mapView.on("click", (event) =&amp;gt; {            
      mapView.openPopup({
        location: event.mapPoint
      });
    });

  }, [])

  return (    
      &amp;lt;div id="mapDiv"&amp;gt;  
        &amp;lt;PopupPortal mount={popupRoot}&amp;gt;
          &amp;lt;CustomPopup /&amp;gt;
        &amp;lt;/PopupPortal&amp;gt;      
      &amp;lt;/div&amp;gt;
  )
}

export default App&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="popup-yeah.gif" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/89444iD246F973F4209E42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="popup-yeah.gif" alt="popup-yeah.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 07:57:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1362416#M83161</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2023-12-19T07:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Popup header can't be removed in arcgis javascript API 4.28</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1362427#M83162</link>
      <description>&lt;P&gt;Does not seem to work, using&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/642472"&gt;@ArcGIS&lt;/a&gt;/core@next (which at this stage is v29)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViktorSafar_0-1702974515187.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/89446i178D396DF9544F54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ViktorSafar_0-1702974515187.png" alt="ViktorSafar_0-1702974515187.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 08:29:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-header-can-t-be-removed-in-arcgis-javascript/m-p/1362427#M83162</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2023-12-19T08:29:02Z</dc:date>
    </item>
  </channel>
</rss>

