Skip to content

Instantly share code, notes, and snippets.

@davidfurlong
Created March 24, 2014 17:54
Show Gist options
  • Save davidfurlong/9745489 to your computer and use it in GitHub Desktop.
Save davidfurlong/9745489 to your computer and use it in GitHub Desktop.
Add to header (after selectize.css)
<style>
.selectize-input input[type="text"] {
border:1px solid #d0d0d0 !important;
background:white !important;
padding:4px !important;
min-width:100px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
-webkit-border-radius: 3px;
}
.selectize-input {
cursor:default !important;
border:0px !important;
background:transparent !important;
-webkit-box-shadow: none !important;
-moz-box-shadow:none !important;
box-shadow: none !important;
}
</style>
Comment these lines in selectize.js lines 791,792
self.$control_input.css({opacity: 0, position: 'absolute', left: self.rtl ? 10000 : -10000});
self.isInputHidden = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment