Skip to content

Commit

Permalink
Merge pull request #3833 from nextcloud/fix/ncselect-placeholder
Browse files Browse the repository at this point in the history
NcSelect: Only hide search input if disabled and an element was selected
  • Loading branch information
raimund-schluessler committed Feb 28, 2023
2 parents e719139 + c350a66 commit ebf538c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/NcSelect/NcSelect.vue
Expand Up @@ -1008,13 +1008,14 @@ body {
}
}
// Hide search from dom if unused to prevent unneeded flex wrap
.vs__search[readonly] {
position: absolute;
}
// If search if hidden, ensure that the height of the search is the same
.vs__selected-options {
// If search is hidden, ensure that the height of the search is the same
min-height: 40px; // 36px search height + 4px search margin
// Hide search from dom if unused to prevent unneeded flex wrap
.vs__selected ~ .vs__search[readonly] {
position: absolute;
}
}
/**
Expand Down

0 comments on commit ebf538c

Please sign in to comment.