Skip to content

Commit

Permalink
Merge pull request #238 from tsm13/dev
Browse files Browse the repository at this point in the history
Fix toast not showing when copying to clipboard
  • Loading branch information
hotequil authored Nov 12, 2024
2 parents b0e17d1 + 9e90b19 commit ab1deb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/src/components/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { cloneElement, forwardRef, MouseEvent, useImperativeHandle, useRef, useS
import { MdCancel, MdContentCopy, MdContentPasteGo, MdVisibility, MdVisibilityOff } from 'react-icons/md'
import { StyleHelper } from '@renderer/helpers/StyleHelper'
import { TestHelper } from '@renderer/helpers/TestHelper'
import { UtilsHelper } from '@renderer/helpers/UtilsHelper'

import { IconButton } from './IconButton'
import { Loader } from './Loader'
Expand Down Expand Up @@ -56,7 +57,7 @@ export const Input = forwardRef<HTMLInputElement, TInputProps>(
}

const handleCopyInput = () => {
navigator.clipboard.writeText(internalRef.current?.value ?? '')
UtilsHelper.copyToClipboard(internalRef.current?.value ?? '')
}

const handlePaste = async () => {
Expand Down

0 comments on commit ab1deb5

Please sign in to comment.