| @@ -3,14 +3,9 @@ | ||
| 3 | 3 | import { createRoot } from '@wordpress/element'; |
| 4 | 4 | |
| 5 | 5 | const ROOT_ID = 'extendify-quick-edit-modal-root'; |
| 6 | 6 | |
| 7 | -// Override @wordpress/components Modal's default bodyOpenClassName ("modal-open") | |
| 8 | -// so our modals don't trip the wp.media-detection rule in quick-edit.css | |
| 9 | -// (`body.modal-open .components-modal__frame:has(.extendify-quick-edit-modal)`). | |
| 10 | -// Round-6 keyed that rule off `body.modal-open` thinking it was a wp.media-only | |
| 11 | -// signal; @wordpress/components Modal also adds it on mount, so every QE modal | |
| 12 | -// was hiding itself on first open. | |
| 7 | +// Modal's default "modal-open" trips quick-edit.css's wp.media hide rule. | |
| 13 | 8 | export const QE_MODAL_BODY_OPEN_CLASS = 'extendify-quick-edit-modal-open'; |
| 14 | 9 | |
| 15 | 10 | let modalRoot = null; |
| 16 | 11 | let reactRoot = null; |