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
This commit is contained in:
David Taylor 2023-07-24 12:28:20 +01:00 committed by GitHub
parent 5d2ec6461d
commit a5fa24d876
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {