Closed ttill closed 4 years ago
I've run into this issue as well, and I confirm the changes here fix the issue.
@balajimanoharan @jkusa what's the status here?
@ttill Thanks for this PR. I want to update the repo to allow for both, have config option jqueryIntegration: true|false
that would package the appropriate js files. If you would like to add that to this PR, that would be great, otherwise I will work on that later this week.
@balajimanoharan It might not be worth it, since GridStack is actively working on dropping jQuery
. Also, importing jQuery
separately for now in Ember
is trivial - maybe @ttill can add a note in the README instead?
Thanks for your feedback. I also do not think it is worth the effort, because
gridstack
will drop jquery
in the foreseeable futurejquery
, then gridstack
does. So we only hide the fact that jquery
is still shipped. As far as I understand while jqueryui
shipped with gridstack
is stripped down to the essentials, jquery
is not.
See https://github.com/gridstack/gridstack.js/issues/1191
I experience the bug described above when using gridstack through ember-gridstack in an app which also uses other jquery addons.
For instance when trying to use
ember-cli-bootstrap-datetimepicker
:TypeError: $.fn.datetimepicker is undefined
Since gridstack.js uses jquery anyways for now, it shouldn't be a problem to add it our dependencies again for the time being.
I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.