Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Quick add] Remove modal-dialog elements #2143

Merged
merged 1 commit into from
Nov 24, 2022
Merged

Conversation

andrewetchen
Copy link
Contributor

@andrewetchen andrewetchen commented Nov 22, 2022

PR Summary

Potential solution to solve the problem of extra modal-dialog elements being added to the DOM / footer.

📌 This only happens when Pop-up blocks are added (screenshot)

Why are these changes introduced?

Fixes #2142

What approach did you take?

Update quick-add.js

  • I updated removeDOMElements() to also remove each modal-dialog element.

Testing steps/scenarios

  • Make sure no extra modal-dialog elements get added when opening and closing the quick-add (choose options) modal

Demo links

  • Editor (includes fix)
  • Editor (Fresh copy of Dawn v7.0.1 to reproduce the bug):
    • It will appear when opening + closing the quick add "Choose options" modal from the homepage and collection page, but not from featured collection sections on the product page:
quick-add-choose-options-bug-summary.mp4

Checklist

Copy link
Contributor

@ludoboludo ludoboludo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works as needed 👌
Thanks for creating the fix for this 😄

Copy link
Contributor

@sofiamatulis sofiamatulis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected but I cant reproduce the bug on main 🤔

Am I missing a step? https://screenshot.click/24-40-zdvn0-hwbr2.mp4

@andrewetchen
Copy link
Contributor Author

andrewetchen commented Nov 24, 2022

Works as expected but I cant reproduce the bug on main 🤔

Am I missing a step? https://screenshot.click/24-40-zdvn0-hwbr2.mp4

Thanks for reviewing, Sofia!

*Edit

I'm having issues with our currently published / live Dawn theme on os2-demo. I've uploaded the latest version of Dawn v.7.0.1 (latest one from the Theme Store) and I'm able to reproduce when "Choosing options" from the home page and collection pages: https://os2-demo.myshopify.com/admin/themes/137476702230/editor

Copy link
Contributor

@sofiamatulis sofiamatulis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Paired with Andrew and for context this only seems to happen on the homepage: https://screenshot.click/24-30-5d2j3-602dj--8afa.mp4

Looks good 🎉

@sofiamatulis sofiamatulis self-assigned this Nov 24, 2022
@andrewetchen andrewetchen merged commit 8c86e12 into main Nov 24, 2022
@andrewetchen andrewetchen deleted the fix-modal-dialog branch November 24, 2022 20:03
phapsidesGT pushed a commit to Gravytrain-UK/gt-shopify-dawn-theme that referenced this pull request Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Quick add] Product pop-up blocks added to DOM
3 participants