File tree Expand file tree Collapse file tree
packages/components/src/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ export function RegionSelect({
127127 { filtered . length === 0 && < li className = "px-3 py-2 text-sm text-gray-500" > No results.</ li > }
128128 { filtered . map ( ( option ) => {
129129 const isSelected = option . value === value ;
130+ const isEnterCandidate = query . trim ( ) !== '' && enterCandidate ?. value === option . value && ! isSelected ;
130131 return (
131132 < li key = { option . value } className = "list-none" >
132133 < button
@@ -141,6 +142,7 @@ export function RegionSelect({
141142 'w-full text-left cursor-pointer select-none py-3 px-3 transition-colors duration-150 flex items-center gap-2 rounded' ,
142143 'text-gray-900' ,
143144 isSelected ? 'bg-gray-100' : 'hover:bg-gray-100' ,
145+ isEnterCandidate && 'bg-gray-50' ,
144146 itemClassName
145147 ) }
146148 >
You can’t perform that action at this time.
0 commit comments