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

Front - Popup closing on texts selection #156

Open
Arikkusan opened this issue Mar 19, 2024 · 0 comments
Open

Front - Popup closing on texts selection #156

Arikkusan opened this issue Mar 19, 2024 · 0 comments

Comments

@Arikkusan
Copy link
Collaborator

Closing the popup by clicking outside is a function, the only donwside with this is that when the user select text and the mouse goes out of the popup, it closes it.

To disable this functionnality, you can remove / comment the lines in

FRONT/js/model/popups/PopupManager.js

// on container clicked, close the popup if the click is outside the popup
this.popupContainer.addEventListener('click', (e) => {
    if (e.target === this.popupContainer) {
        this.#closeAll();
    }
});
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

1 participant