Skip to content

Commit

Permalink
fix: don't downcase URLs
Browse files Browse the repository at this point in the history
Fixes #126
  • Loading branch information
petyosi committed Oct 16, 2023
1 parent 15352b6 commit 7b11c86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/core/ui/DownshiftAutoComplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export const DownshiftAutoComplete: React.FC<{

const { isOpen, getToggleButtonProps, getMenuProps, getInputProps, highlightedIndex, getItemProps, selectedItem } = useCombobox({
initialInputValue,
onInputValueChange({ inputValue }) {
inputValue = inputValue?.toLowerCase() || ''
onInputValueChange({ inputValue = '' }) {
setValue(inputName, inputValue)
inputValue = inputValue?.toLowerCase() || ''
const matchingItems = []
for (const suggestion of suggestions) {
if (suggestion.toLowerCase().includes(inputValue)) {
Expand Down

0 comments on commit 7b11c86

Please sign in to comment.