Sticker Creator: Don't pop sticker preview over the close button
This commit is contained in:
parent
31f219690a
commit
1f5cb9e8af
1 changed files with 8 additions and 1 deletions
|
@ -198,7 +198,14 @@ export const StickerFrame = React.memo(
|
|||
/>
|
||||
) : null}
|
||||
{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}
|
||||
</button>
|
||||
) : null}
|
||||
|
|
Loading…
Reference in a new issue