josealejandro2928 / ngp-image-picker

Angular library for the selection, edition and compression of images in png, jpeg and webp formats This library was generated with Angular CLI version 15, and support the latest version of angular. Previous versions of this library relied entirely on angular material components. Today it is made with html and css without any extra components. Re
https://www.npmjs.com/package/ngp-image-picker
MIT License
15 stars 11 forks source link

When using routes, edit button will reroute to the root of the app #23

Closed douwetiemersma closed 2 years ago

douwetiemersma commented 2 years ago

In my app I'm using routing with @angular/router the imagePicker is located on path:'edit/:contactId' When I add an image, and click on the edit button, the link it wil follow is http://localhost:3000/polyfills.js which will send the user to the homapage (path:'') in the app. Is there a way to fix this? This behaviour doesn't happen when clicking any other button

douwetiemersma commented 2 years ago

Some extra details: the overlay is loaded, until a Scheduled Macro task sends the browser to the root by executing sendNative.apply(target, data.args);

josealejandro2928 commented 2 years ago

I cannot reproduce the problem. This should not happens, because the behavior of the "Edit" button is a boolean state that open and internal components that looks like a full screen modal. I think that there is not relation between the logic of this component and the Routing mechanism of angular. I you can try to reproduce the problem on stackblitz this is the link: https://stackblitz.com/edit/angular-ivy-otu4f3?file=src%2Fapp%2Fapp.component.ts

josealejandro2928 commented 2 years ago

It is checked

5Gears0Chill commented 1 year ago

This is happening to me as well

5Gears0Chill commented 1 year ago

This is happening to me as well

I actually get a webpack dev server disconnected