Typo in "closest" expression

In app/assets/javascripts/discourse/app/components/d-modal-body.js (line 32):

element.closest(".d-modal:not(.d-modal-legacy")

is missing the close bracket for the not. (This prevents Sign up/Log in from working on Pale Moon/Basilisk.)

4 Likes

Thanks for the report @adoxa. It looks like the missing parenthesis is automatically added by all of our officially supported browsers, so that’s why we didn’t pick up on it. In any case, here’s a fix:

7 Likes

This topic was automatically closed after 19 hours. New replies are no longer allowed.