Fix: disabled content being copied on keyDown action (#2716)

* fix: disabled content being copied on keyDown action

* chore: tab index and role is updated

* fix: reverted lodash changes

---------

Co-authored-by: Palash Gupta <palashgdev@gmail.com>
This commit is contained in:
Sanjib Kumar Sah 2023-05-19 11:58:01 +05:30 committed by GitHub
parent fb10d7d81f
commit e7f5adc8a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ function CopyClipboardHOC({
}, [setCopy, textToCopy]);
return (
<span onClick={onClick} onKeyDown={onClick} role="button" tabIndex={0}>
<span onClick={onClick} role="presentation" tabIndex={-1}>
<Popover
placement="top"
content={<span style={{ fontSize: '0.9rem' }}>Copy to clipboard</span>}