Uncaught TypeError: Cannot read properties of undefined (reading 'classList')
at Modal._isAnimated (VM3805 bootstrap.bundle.js:4809:28)
at Modal._initializeBackDrop (VM3805 bootstrap.bundle.js:4679:26)
at new Modal (VM3805 bootstrap.bundle.js:4565:29)
at Modal.getOrCreateInstance (VM3805 bootstrap.bundle.js:710:43)
at HTMLButtonElement.<anonymous> (VM3805 bootstrap.bundle.js:751:34)
at HTMLDocument.handler (VM3805 bootstrap.bundle.js:391:23)
気がついたのは support-7.x でシステムユーザー一覧のユーザーの一括登録ダイアログからのアップロード後に開くダイアログの閉じるボタンを押したときだが、ほかの場面でも出ている可能性あり。まずは調査から。なお、MT8 では該当のエラーは表示されない。
Uncaught TypeError: Cannot read properties of undefined (reading 'classList') at Modal._isAnimated (VM3805 bootstrap.bundle.js:4809:28) at Modal._initializeBackDrop (VM3805 bootstrap.bundle.js:4679:26) at new Modal (VM3805 bootstrap.bundle.js:4565:29) at Modal.getOrCreateInstance (VM3805 bootstrap.bundle.js:710:43) at HTMLButtonElement.<anonymous> (VM3805 bootstrap.bundle.js:751:34) at HTMLDocument.handler (VM3805 bootstrap.bundle.js:391:23)
該当箇所の差分は下記の通り。モーダルを閉じるときの処理が何やら衝突していそう。
--- addons/Enterprise.pack//tmpl/admin2023/create_author_bulk_start.tmpl 2023-11-07 17:31:26.815382419 +0900 +++ ../movabletype-addons/addons/Enterprise.pack/tmpl/admin2023/create_author_bulk_start.tmpl 2023-11-01 12:47:21.902086238 +0900 @@ -6,7 +6,7 @@ <h4 class="modal-title"> <mt:var name="page_title"> </h4> - <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close" data-mt-modal-close> + <button type="button" class="close" aria-label="Close" data-mt-modal-close> <span aria-hidden="true">×</span> </button> </div>