From c350a6659a2e146e91429239a567b7ddd66c8476 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 28 Feb 2023 11:27:34 +0100 Subject: [PATCH] fix(NcSelect): Only hide search input if disabled and an element was selected This fixes a regression where the placeholder text is not shown if configured to be not searchable. Signed-off-by: Ferdinand Thiessen --- src/components/NcSelect/NcSelect.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/NcSelect/NcSelect.vue b/src/components/NcSelect/NcSelect.vue index 381285b5fc..476e30aca9 100644 --- a/src/components/NcSelect/NcSelect.vue +++ b/src/components/NcSelect/NcSelect.vue @@ -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; + } } /**