Skip to content
Merged

fix tab #1990

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion frontend/app/suggestion/suggestion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@ const SuggestionControl: React.FC<SuggestionControlProps> = ({
isOpen,
onClose,
onSelect,
onTab,
fetchSuggestions,
className,
children,
}) => {
if (!isOpen || !anchorRef.current || !fetchSuggestions) return null;

return <SuggestionControlInner {...{ anchorRef, onClose, onSelect, fetchSuggestions, className, children }} />;
return (
<SuggestionControlInner {...{ anchorRef, onClose, onSelect, onTab, fetchSuggestions, className, children }} />
);
};

function highlightPositions(target: string, positions: number[]): ReactNode[] {
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/view/preview/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ function PreviewView({
return true;
};
const handleTab = (s: SuggestionType, query: string): string => {
if (s["mime:type"] == "directory") {
if (s["file:mimetype"] == "directory") {
return s["file:name"] + "/";
} else {
return s["file:name"];
Expand Down
Loading