Skip to content

Commit

Permalink
Issue Kong#7221: Pressing enter/return while text is selected in the …
Browse files Browse the repository at this point in the history
…request URL bar causes the selected text to be deleted

- Fixed 'paste' handling code which was causing text replacement logic to run when text had merely been selected but not actually changed

Issue Kong#7029: Unable to see full collection names
- Added title (hover tooltip) for name label on collection card
  • Loading branch information
git-commit-amen authored and filfreire committed Apr 8, 2024
1 parent 26a78cf commit 88d06d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const OneLineEditor = forwardRef<OneLineEditorHandle, OneLineEditorProps>
codeMirror.current.on('beforeChange', (_: CodeMirror.Editor, change: CodeMirror.EditorChangeCancellable) => {
const isPaste = change.text && change.text.length > 1;
if (isPaste) {
if (change.text[0].startsWith('curl')) {
if (change.text[0].startsWith('curl') || !change.text.join('').trim()) {
change.cancel();
return;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/insomnia/src/ui/routes/project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,7 @@ const ProjectRoute: FC = () => {
/>
)}
</div>
<Heading className="pt-4 text-lg font-bold truncate">
<Heading className="pt-4 text-lg font-bold truncate" title={item.name}>
{item.name}
</Heading>
<div className="flex-1 flex flex-col gap-2 justify-end text-sm text-[--hl]">
Expand Down

0 comments on commit 88d06d2

Please sign in to comment.