mariordev / mailtoui

A simple way to enhance your mailto links with a convenient user interface.
https://mailtoui.com
MIT License
192 stars 12 forks source link

Two tabs open on click in Opera #12

Open JamDevCore opened 4 years ago

JamDevCore commented 4 years ago

When opening any of the browser email clients from Opera (gmail, yahoo, outlook) two different tabs open simultaneously. I know Opera has a small user base but just thought I'd pop this in here.

mariordev commented 4 years ago

Hi James, thanks for reporting this! I'll take a look as soon as I can.

ghost commented 4 years ago

This is still happening on Firefox as well. Browser email clients, as well as the default mail application, are opening multiple windows for each action (2-3).

Update: Adding event.stopImmediatePropagation(); within app.listenForClickOnClient has resolved it for me. I was running the library via the run method on-click which caused multiple listeners to be created for the same element.

It would be useful to be able to dynamically add links after the mailtouiApp.run() has been called without having to re-run each time a new link is created.

Also, having a destroy method would be helpful as well.