Skip to content

Commit 6422f91

Browse files
seanstorymiguelgrinberg
authored andcommitted
Make selected option stay selected
1 parent b9a5c2f commit 6422f91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example-apps/internal-knowledge-search/app-ui/src/components/SearchApplicationSettings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const SearchApplicationSettings: React.FC = () => {
115115
className="flex items-center space-x-2 p-2 bg-white rounded border border-gray-300 focus:outline-none focus:border-blue-500"
116116
>
117117
{searchPersonaOptions.map((option, index) => (
118-
<option value={option} className="block text-left p-2 hover:bg-gray-100 cursor-pointer">
118+
<option value={option} selected={option == searchPersona} className="block text-left p-2 hover:bg-gray-100 cursor-pointer">
119119
{option}
120120
</option>
121121
))}

0 commit comments

Comments
 (0)