Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion components/KernDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ export default function KernDropdown(props: KernDropdownProps) {
onFocus={(event) => event.target.select()}
className="h-9 w-full text-sm border-gray-300 rounded-md placeholder-italic border text-gray-900 pr-8 pl-4 truncate placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 focus:ring-offset-gray-100 disabled:opacity-50 disabled:cursor-not-allowed"
disabled={isDisabled && !props.ignoreDisabledForSearch}
placeholder="Type to search..." />
placeholder={props.placeholder || "Type to search..."}
/>
<MemoIconChevronDown
className={`h-5 w-5 absolute right-0 mr-3 -mt-7 ${isDisabled && !props.ignoreDisabledForSearch ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer'} ${props.buttonIconClasses}`}
aria-hidden="true"
Expand Down
1 change: 1 addition & 0 deletions types/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export type KernDropdownProps = {
scrollAfterNOptions?: number;
dropdownAdd?: JSX.Element[];
forceOverwriteOpen?: boolean;
placeholder?: string;
}

export type AppSelectionDropdownProps = {
Expand Down