Comments (12)
@Robdel12 or @wwilsman: Any ideas?
Thanks so much!
from dropkick.
Hey @benlevywebdesign! Sorry for the delayed response. I've been in the middle of a move for a week (just got internet back today! :p). I hope to be able to get to this over the weekend though!
from dropkick.
No worries, It's probably something so simple I'm missing. I'm not sure though...
from dropkick.
I'm going to try something. It probably won't work, but I'm going to try hosting the icon font myself and see what happens...
from dropkick.
I was thinking about this and I wonder if it's because icon fonts can't be rendered in a normal select. I'm sure there's something in DK we can do to fix that, but I think that's the issue here.
from dropkick.
I'm betting it has something to do with the innerHTML
property. That property parses the html. I think what we'll want is textContent
.
There's a few places we reference innerHTML
we'll need to replace if this is the case
from dropkick.
Should I try replacing innerHTML
with textContent
? I would do this in the JS file?
from dropkick.
Just to give an update: in-between unpackings I've tried to reproduce / fix the issue but I haven't been able to even get the icon to render. Curious if this is something older DK can do and not the latest release. (I see you're using 2.1.7)
I tried going brute force and replacing innerHTML
with textContent
but that breaks DK, haha. I'm going to need to carve out some time for this one.
from dropkick.
Any enlightening discoveries?
from dropkick.
Hey @benlevywebdesign I haven't had time to really dig into this but I do know this will be a tough one to solve. Mainly because icons aren't supported in regular <selects>
, which is what DropKick uses to build itself. We'll have to make sure we handle the cases for scrubbing out the icon from the value
attribute too.
This should be a feature that we add for sure though.
from dropkick.
Hmm, yeah thats true with regular selects too I supposes. I thought I'd have to insert <i class="material-icons"></i>
into my databse to echo it back on the page but I think the easiest thing to do would be for me to use just text in the select and echo out the result as the icon with some if else statements. I'm not so concerned with having the icon display as the selects element. If you want to mark this issue closed you can.
from dropkick.
I think this is something DropKick should do though. This is a pretty common reason why someone would use a select replacement over a normal select.
Thanks for raising the issue :D
from dropkick.
Related Issues (20)
- IE11 Issue: Change event. HOT 2
- Disabled state isn't relayed to the screen reader
- Multiselects on mobile are broken
- Disabled optgroup not detected
- Classes added to the combobox are removed on select HOT 4
- Select with all options disabled breaks HOT 1
- JAWS 17 not reading dropkick dropdown
- this object doesn't support this property or method dropkick HOT 1
- How to handle autocomplete
- This isn't really an issue, but HOT 1
- UglifyJS error because of ES6 HOT 8
- Not working on IE 11 HOT 2
- TypeError default is not a constructor HOT 5
- Cross-Origin blocking on forms using dropkick HOT 1
- toggleClass throws "is not a function" HOT 2
- Hiding the Selected Option From the Dropdown List HOT 7
- Bubble Option not triggering change on the native select HOT 1
- Accessibility issue HOT 1
- Dropkick does not correctly handle selects with optgroups
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 dropkick.