Disable img context menu...

release v3.0.1-j
mashirozx 2021-10-26 15:29:54 +08:00
parent 818aba94a0
commit dac9386e73
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "emoji-mart-lazyload",
"version": "3.0.1i",
"version": "3.0.1j",
"description": "Customizable Slack-like emoji picker for React",
"main": "dist/index.js",
"module": "dist-es/index.js",

View File

@ -223,6 +223,7 @@ const NimbleEmoji = (props) => {
className="lazy"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP89B8AAukB8/71MdcAAAAASUVORK5CYII="
data-src={imageUrl}
onContextMenu={(e) => e.preventDefault()}
/>
:
<span style={style}>{children}</span>