Git Product home page Git Product logo

Comments (4)

nate-strauser avatar nate-strauser commented on May 28, 2024

are you actually including this package directly? pretty sure that autoform and yogiben's admin do not use this package.

from meteor-select2.

neil-s avatar neil-s commented on May 28, 2024

I am. Thanks for such a quick response!

My full use case:

I needed to load some custom items in my select2, so I've copied the HTML + JS from aldeed:autoform-select2, and customized those to my needs. This code resides in approot/client/ (I haven't yet switched away to the lazy-loading structure recommended in 1.3). Along with this application code, I use the following top-level packages and versions:

yogiben:[email protected]
aldeed:[email protected]
natestrauser:[email protected]
zimme:[email protected]

(note: I haven't selected any versions manually, these are copied out of the versions file created by meteor's own package management)

Since I don't directly control the template used on the admin pages, I'm using your package to load the select2 JS and CSS in at the right time (after jQuery, before the select widgets are rendered and the select2 initialisation function called). It works fine in Meteor 1.2, but breaks on update.

from meteor-select2.

nate-strauser avatar nate-strauser commented on May 28, 2024

this package is working just fine for me with a meteor 1.3 app

i'm using
aldeed:autoform
aldeed:autoform-select2
natestrauser:select2

the select2 plugin seems to work properly in my custom written admin interface

i think your issue may be something specific to your use case or the yogiben admin

from meteor-select2.

neil-s avatar neil-s commented on May 28, 2024

Sorry, isolated the bug, and it was with my application code, not this package. Specifically, I was using Template.<templatename>.rendered = function () {...} to initialize the plugin, rather than the documented Template.<templatename>.onRendered(function () {...}). Changing to the latter fixed my issue.

from meteor-select2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.