Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: Dragsio on September 08, 2024, 08:40:11 AM

Title: Drop-down menu problem
Post by: Dragsio on September 08, 2024, 08:40:11 AM
Hi, I'm creating a custom email signature plugin. However, I ran into the problem that in the drop-down box in the top menu, after clicking on the desired signature (button), the page wants to be redirected when I click again or change the selection.

How can I prevent this?

Thank you very much for your help.
Title: Re: Drop-down menu problem
Post by: SKaero on September 08, 2024, 10:15:32 PM
In your Javascript when the button is clicked call preventDefault() on the event object.
Title: Re: Drop-down menu problem
Post by: Dragsio on September 10, 2024, 08:20:23 AM
Thank you for your advice but still nothing has been resolved. Just to clarify the problem, the fact that the website wants to be redirected is manifested by this message (image).

EDIT: I think it might have something to do with the TinyMCE editor.

Please help me
Title: Re: Drop-down menu problem
Post by: SKaero on September 10, 2024, 10:58:20 AM
I couldn't provide any more help without seeing the code you use for the button.