Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the pop-up window opens twice #110

Open
BrunoPorfidio opened this issue Nov 30, 2023 · 1 comment
Open

the pop-up window opens twice #110

BrunoPorfidio opened this issue Nov 30, 2023 · 1 comment

Comments

@BrunoPorfidio
Copy link

BrunoPorfidio commented Nov 30, 2023

Hello guys, i found a error, when i use the image compress in a input connected a Label, the Pop-up windows opens twices.

<label for="logotipo">
<i class="bi bi-plus-lg"></i>
</label>
<input  (change)="compressFile()" type="file"  name="logotipo"  id="logotipo" 
   accept="image/png, image/jpeg" formControlName="logotipo" [class.is-invalid]="invalidLogo"
   alife-file-to-base64 >

i cannot change the label for a button, because my validation dont work, and if i change the (change) for (click), happens the same.

@dfa1234
Copy link
Owner

dfa1234 commented Jul 22, 2024

Maybe we need to make some fix on our side, but meanwhile, a solution for you would be to put the code of you compressFile() function in zone outside angular

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants