Skip to content

Commit

Permalink
style and bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
aurovrata committed Aug 26, 2021
1 parent 5c30da4 commit 785f3f4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
8 changes: 5 additions & 3 deletions hybrid-dropdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
cursor: pointer;
background:inherit;
}
select.hybrid-select{
select.hybridddised{
visibility:hidden !important;
width:0 !important;
height: 0 !important;
}
.hybrid-dropdown:focus {box-shadow: 1px 1px 3px}
.hybriddd-option::before, .hybriddd-group::before {
Expand All @@ -41,7 +43,7 @@ select.hybrid-select{
padding: 0;
list-style: none !important;
display: none;
z-index: 1;
z-index: 7777;
margin: 0;
padding: 0;
left: -1px;
Expand Down Expand Up @@ -71,7 +73,7 @@ select.hybrid-select{
min-width: 100%;
max-width: inherit;
display: inline-block;
z-index: 2;
z-index: 7;
}

.hybriddd-selected::after {
Expand Down
6 changes: 5 additions & 1 deletion hybrid-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,18 @@ class HybridDDError extends Error {
if(elm.hasAttribute(a)){
let opt = 'field'+a.charAt(0).toUpperCase() + a.slice(1);
cnfg[opt] = elm.getAttribute(a);
elm.removeAttribute(a);
switch(a){
case 'name':
elm.removeAttribute(a);
}
}
});
switch(true){
case elm.nodeName === "SELECT": //select field source.
if(elm.multiple) lim=-1;
// elm.style="visibility:hidden"; //hide the origial select field.
cb = false; //checkboxes
if(cnfg.fieldId) cnfg.fieldId += '-hdd';
break;
default:
_.isDS = true;// dateset source.
Expand Down
2 changes: 1 addition & 1 deletion min/hybrid-dropdown.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 785f3f4

Please sign in to comment.