File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ export type KernDropdownProps = {
9393 scrollAfterNOptions ?: number ;
9494 dropdownAdd ?: JSX . Element [ ] ;
9595 forceOverwriteOpen ?: boolean ;
96+ placeholder ?: string ;
9697}
9798
9899export type AppSelectionDropdownProps = {
You can’t perform that action at this time.
0 commit comments