Comments (10)
I actually just saw this in the console:
Resource interpreted as Image but transferred with MIME type text/html: "http://localhost:3000/select2x2.png".
Do you know why it would be doing this?
from meteor-select2.
having the same problem. would appreciate some help/tip on how to resolve this.
from meteor-select2.
@thomasspiesser I actually fixed this but it wasn't ideal. I took the image and and put it in the /public folder of the project. For the placeholder, I added an empty "option" to the top of the select. That fixed everything. I'm not sure why Meteor doesn't find the assets of the packages sometimes. I've had this happen on two other packages now.
from meteor-select2.
@sturoid thanks mate! that fixes the problem even though it isn't ideal.
from meteor-select2.
@thomasspiesser Glad I could help!
from meteor-select2.
I seem to have this happening too in Meteor 1.0.3.1 ... any relationship to meteor/meteor#2602?
from meteor-select2.
Thanks for linking that. It could definitely be the problem.
from meteor-select2.
Yes, that seems to be the problem. A call to e.g.
http://localhost:3000/packages/natestrauser_select2/lib/select2/select2.png
works. Should the image references in the css files be hardcoded? If that is the solution, I could submit a quick PR.
from meteor-select2.
In the meantime (waiting on stable Select2 4.0 for nate's official Atmosphere package), you can just download abhishekbatra's fork as a .zip, copy its contents into your app's packages/
folder and then meteor add select2
. It solves this issue, at least.
from meteor-select2.
Interesting thing is that some of the urls are rewritten (at least for me looking at the chrome devtools), like:
.select2-search-choice-close {
(..)
background: url('packages/natestrauser_select2/lib/select2/select2.png') right top no-repeat;
}
Even though the css file points directly to select2.png. I don't understand that. It would be great if this (rewrite) was a default behavior for css files.
Overwriting the css in a custom files feels wrong - it might break if the original css file changes.
For now I'm gonna copy the files to public/ ..
from meteor-select2.
Related Issues (20)
- Problem with loading remote data with iron-router?
- README error HOT 1
- Unable to install HOT 2
- Support with Meteor 1.2 HOT 1
- Uncaught TypeError: $(...).select2 is not a function HOT 2
- License model HOT 3
- i18n support HOT 1
- Update to 4.0.1 HOT 3
- Package is loaded twice HOT 1
- Error when dismissing modal with select2 HOT 5
- INCOMPATIBLE WITH METEOR 0.9.0 OR LATER HOT 2
- Could you add "select2-bootstrap-theme CSS" in this package? HOT 2
- Can you add a minimal example to the README? HOT 1
- Please update to 4.0.2 version HOT 2
- Meteor 1.3 support HOT 4
- Re-size issue HOT 2
- Meteor 1.3 allowClear option not working
- Customized Results Matching Not Supported
- Issue reactive Select2 HOT 1
- Select is just displaying as a regular select
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meteor-select2.