Skip to content

Commit 6dacb81

Browse files
Chat Sharing (#62)
* dropdown language if available * dropdown placeholder * dropdown placeholder defaults
1 parent 25c82fd commit 6dacb81

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

components/KernDropdown.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ export default function KernDropdown(props: KernDropdownProps) {
196196
onFocus={(event) => event.target.select()}
197197
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"
198198
disabled={isDisabled && !props.ignoreDisabledForSearch}
199-
placeholder="Type to search..." />
199+
placeholder={props.placeholder || "Type to search..."}
200+
/>
200201
<MemoIconChevronDown
201202
className={`h-5 w-5 absolute right-0 mr-3 -mt-7 ${isDisabled && !props.ignoreDisabledForSearch ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer'} ${props.buttonIconClasses}`}
202203
aria-hidden="true"

types/dropdown.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export type KernDropdownProps = {
9393
scrollAfterNOptions?: number;
9494
dropdownAdd?: JSX.Element[];
9595
forceOverwriteOpen?: boolean;
96+
placeholder?: string;
9697
}
9798

9899
export type AppSelectionDropdownProps = {

0 commit comments

Comments
 (0)