Skip to content

Commit 68691ac

Browse files
committed
fix: allow custom classes for input element in Select component
1 parent 77dd0f3 commit 68691ac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

adminforth/spa/src/afcl/Select.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class="block w-full pl-3 pr-10 py-2.5 border border-lightDropownButtonsBorder rounded-md leading-5 bg-lightDropdownButtonsBackground
1414
placeholder-lightDropdownButtonsPlaceholderText text-lightDropdownButtonsText sm:text-sm transition duration-150 ease-in-out dark:bg-darkDropdownButtonsBackground dark:border-darkDropdownButtonsBorder dark:placeholder-darkDropdownButtonsPlaceholderText
1515
dark:text-darkDropdownButtonsText focus:ring-lightPrimary focus:border-lightPrimary dark:focus:ring-darkPrimary dark:focus:border-darkPrimary"
16-
:class="{'cursor-pointer': searchDisabled}"
16+
:class="[{'cursor-pointer': searchDisabled}, classesForInput]"
1717
autocomplete="off" data-custom="no-autofill"
1818
:placeholder="
1919
selectedItems.length && !multiple ? '' : (showDropdown ? $t('Search') : placeholder || $t('Select...'))
@@ -153,6 +153,10 @@ const props = defineProps({
153153
type: Number,
154154
default: 300,
155155
},
156+
classesForInput: {
157+
type: String,
158+
default: '',
159+
},
156160
});
157161
158162
const emit = defineEmits(['update:modelValue', 'scroll-near-end', 'search']);

0 commit comments

Comments
 (0)