Comments (6)
I think you'll probably just want to remove (or make more specific) the last CSS rule in dropkick.css:
.dk_fouc select {
position: relative;
top: -99999em;
visibility: hidden;
}
from dropkick.
I have a fork which fixes this problem specifically. https://github.com/owenallenaz/DropKick. Rather than hiding all selects, it makes it so that it only hides the elements which have .dk_fouc
applied, forcing developers to be specific about which selects they want to prevent the flash of unstyled content on (FOUC).
from dropkick.
Awesome.
from dropkick.
+1, I only want to apply DropKick to one <select>
tag in my site, but it ends up hiding all <select>
elements, regardless of whether DropKick is being applied.
from dropkick.
+1
from dropkick.
Yeah, I'm not a fan of this functionality. I'd really rather not have a jquery plugin adding a class to my html element. You can fix by removing css like bdukes said or by commenting out the line that adds the "ok_fouc" class to the html tag (line 19).
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
- Using an icon font displays unexpected results HOT 12
- 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.