Fix close button target when using SVG as inner content#503
Fix close button target when using SVG as inner content#503mtscarvalho wants to merge 1 commit intomicromodal:masterfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Hello @mtscarvalho 👋 Wondering why do you need to explicitly use |
|
Hello, @kalpeshsingh ! 👋 When you click on the SVG, the event target is no longer the button element, but the path inside the SVG or the svg element itself. As a consequence, the event target fails and the closing action does not happen. A way to fix that is disabling the event fires on SVG. There 2 ways about how to do that:
The |
|
Hello @kalpeshsingh! What do you think of this fix? It's my first interaction and PR with an open-source project. Please, let me know if I did something wrong or if you have some suggestions. |
|
Hello @mtscarvalho I will let @ghosh make a decision here. |
When some SVG tag is added inside the close button tag, the action of closing the modal doesn't work. This PR aims to fix that problem.