From f53d9b8c7183615ca12264d3e945fcc94e470a31 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Wed, 13 Mar 2019 07:55:35 -0700 Subject: [PATCH] fix preact compat --- src/components/skins-dot.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/skins-dot.js b/src/components/skins-dot.js index 3fcd84e..23e31d2 100644 --- a/src/components/skins-dot.js +++ b/src/components/skins-dot.js @@ -32,17 +32,17 @@ export default class SkinsDot extends Skins { className={`emoji-mart-skin-swatch${selected ? ' selected' : ''}`} aria-label={i18n.skintones[skinTone]} aria-hidden={!visible} - {...opened && { role: 'menuitem' }} + {...opened ? { role: 'menuitem' } : {}} > -
{skinToneNodes}
+
{skinToneNodes}
) }