Esri / calcite-maps

A Bootstrap theme for designing, styling and creating modern map apps.
http://esri.github.io/calcite-maps/samples/index.html
Apache License 2.0
239 stars 173 forks source link

Jquery Version throwing an error #159

Closed Jfairfield1 closed 7 years ago

Jfairfield1 commented 7 years ago

After including the jquery version of the build for calcite maps, I am getting this error panels.collapse is not a function

It is occurring on line 40 panels.collapse("hide");

alaframboise commented 7 years ago

Can you provide a repo case? I just ran this jQuery sample and it seems work as expected. Thanks.

Jfairfield1 commented 7 years ago

I created a jsbin example showing the error I am talking about:

https://jsbin.com/xidohezuga/edit?html,output

If you load this jsbin and try to toggle the basemap panel, it throws the error.

It looks like the issue may be this selector on line 39:

$(".calcite-panels .panel.in");

It isn't finding any elements in this example

alaframboise commented 7 years ago

You are mixing and match jQuery and the dojo loader.

Here's an example using dojo to load bootstrap and calcite-maps and jQuery is loaded at the end. https://jsbin.com/damafe/edit?html

This one loads dojo just for ArcGIS and then jQuery for bootstrap and calcite-maps. https://jsbin.com/zowizeq/edit?html

Closing.