From a5fa24d876bc16633201ec9704ff4823fb5c244b Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 24 Jul 2023 12:28:20 +0100 Subject: [PATCH] DEV: Correct typo in d-modal-body (#22756) Interestingly, this missing parenthesis was silently repaired under Chrome/Firefox, but seems to have caused some issues on other browsers. https://meta.discourse.org/t/272496 --- app/assets/javascripts/discourse/app/components/d-modal-body.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/components/d-modal-body.js b/app/assets/javascripts/discourse/app/components/d-modal-body.js index e621c378dfb..0ba0ea4f801 100644 --- a/app/assets/javascripts/discourse/app/components/d-modal-body.js +++ b/app/assets/javascripts/discourse/app/components/d-modal-body.js @@ -29,7 +29,7 @@ export default class DModalBody extends Component { @action didInsert(element) { - if (element.closest(".d-modal:not(.d-modal-legacy")) { + if (element.closest(".d-modal:not(.d-modal-legacy)")) { // eslint-disable-next-line no-console console.error(LEGACY_ERROR); if (DEBUG) {