Fix IO event handlers being run on normal notes (#3195)

This commit is contained in:
Abdo 2024-05-15 14:48:58 +03:00 committed by GitHub
parent c29125939d
commit 998b91c1fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -644,8 +644,8 @@ the AddCards dialog) should be implemented in the user of this component.
</Absolute>
{/if}
{#if imageOcclusionMode}
<div style="display: {$ioMaskEditorVisible ? 'block' : 'none'}">
{#if $ioMaskEditorVisible && imageOcclusionMode}
<div>
<ImageOcclusionPage
mode={imageOcclusionMode}
on:change={updateOcclusionsField}