Skip to content

Commit

Permalink
Fix pasting duplicate text 🤦
Browse files Browse the repository at this point in the history
It worked in Firefox but not in webkit, derp
  • Loading branch information
cee-chen committed Jul 24, 2024
1 parent 8add8cc commit 8a2ab6b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@ export const EuiAbsoluteTab: FunctionComponent<EuiAbsoluteTabProps> = ({
);
const handleTextChange = useCallback(
(event: ChangeEvent<HTMLInputElement>) => {
if (isReadyToParse) return; // Text paste event, don't continue

setTextInputValue(event.target.value);
setHasUnparsedText(true);
setIsTextInvalid(false);
},
[]
[isReadyToParse]
);

const submitButtonLabel = useEuiI18n(
Expand Down

0 comments on commit 8a2ab6b

Please sign in to comment.