AnsweredAssumed Answered

Search with Expand

Question asked by xylochic627 on Oct 9, 2019
Latest reply on Oct 9, 2019 by xylochic627

I need to add some additional functionality to a map, namely the search widget. To keep the screen open, I want to use Expand with it. However, as soon as I add Expand in, the search widget no longer functions properly. The widget stays collapsed and never allows the user to search. Here's that portion of my code. Am I missing something?


//Add search widget     
     var searchWidget = new Search({
          view: view,
     var searchExpand = new Expand({
     view: view,
     content: searchWidget.domNode,
     expandIconClass: "esri-icon-search"
          // Add the search widget to the top left corner of the view
        view.ui.add(searchExpand, "top-right");

Thanks in advance for any guidance!