Sticker Creator: Don't pop sticker preview over the close button
This commit is contained in:

committed by
Scott Nonnenberg

parent
31f219690a
commit
1f5cb9e8af
@@ -198,7 +198,14 @@ export const StickerFrame = React.memo(
|
|||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
{mode === 'removable' ? (
|
{mode === 'removable' ? (
|
||||||
<button className={styles.closeButton} onClick={handleRemove}>
|
<button
|
||||||
|
className={styles.closeButton}
|
||||||
|
onClick={handleRemove}
|
||||||
|
// Reverse the mouseenter/leave logic for the remove button so
|
||||||
|
// we don't accidentally cover the remove button
|
||||||
|
onMouseEnter={handleMouseLeave}
|
||||||
|
onMouseLeave={handleMouseEnter}
|
||||||
|
>
|
||||||
{closeSvg}
|
{closeSvg}
|
||||||
</button>
|
</button>
|
||||||
) : null}
|
) : null}
|
||||||
|
Reference in New Issue
Block a user