fix: avoid rendering the design library modal again#3699
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR prevents the editor-block tour plugin from rendering tours owned by modal dialogs. A new ChangesModal-Owned Tours Guard
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🤖 Pull request artifacts
|
fixes #3698
The issue is caused by the design library tour rendering more than once.
src/plugins/guided-modal-tour/index.jsseestour=design-libraryand clicks the Design Library toolbar button after 500ms. This part is correct and will render the guided tours triggered by the Design Library Modal.src/plugins/guided-modal-tour/editor-block-tour.jsalso seestour=design-libraryand rendersSummary by CodeRabbit