Skip to content

Commit a610e96

Browse files
committed
feat: update placeholder logic in Select component and add dynamic placeholder to ResourceListTable
1 parent 99eb1d1 commit a610e96

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

adminforth/spa/src/afcl/Select.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
:class="[{'cursor-pointer': searchDisabled}, classesForInput]"
1717
autocomplete="off" data-custom="no-autofill"
1818
:placeholder="
19-
selectedItems.length && !multiple ? '' : (showDropdown ? $t('Search') : placeholder || $t('Select...'))
19+
selectedItems.length && !multiple ? '' : (showDropdown && !searchDisabled ? $t('Search') : placeholder || $t('Select...'))
2020
"
2121
/>
2222

adminforth/spa/src/components/ResourceListTable.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@
349349
v-model="pageSizeInternal"
350350
:options="pageSizeOptionsComputed"
351351
:searchDisabled="true"
352-
:style="{ width: selectDynamicWidth }"
352+
:style="{ width: selectDynamicWidth }"
353+
:placeholder="pageSizeInternal?.toString()"
353354
class="text-sm "
354355
classesForInput="h-[34px] min-h-0 py-1 pl-2 pr-6 text-sm rounded-md cursor-pointer af-button-shadow
355356
bg-lightDropdownButtonsBackground text-lightDropdownButtonsText border-lightDropdownButtonsBorder

0 commit comments

Comments
 (0)