Skip to content

Commit

Permalink
fix select on mobile devices. fix FOUC
Browse files Browse the repository at this point in the history
A select with the `selectpicker` class is automatically hidden via CSS
to remove flash of unstyled content.
  • Loading branch information
caseyjhol committed May 18, 2015
1 parent ea1350c commit 9cb105e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions less/bootstrap-select.less
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,12 @@
}
}

.mobile-device {
select.bs-select-hidden,
select.selectpicker {
display: none !important;
}

select.mobile-device {
position: absolute !important;
top: 0;
left: 0;
Expand All @@ -325,7 +330,3 @@
height: 100% !important;
opacity: 0;
}

select.bs-select-hidden {
display: none !important;
}

0 comments on commit 9cb105e

Please sign in to comment.