-
-
Notifications
You must be signed in to change notification settings - Fork 922
Is there a bug with dynamically changing svgs? #2886
Copy link
Copy link
Open
Labels
Area: CoreFor anything dealing with Mithril core itselfFor anything dealing with Mithril core itselfStatus: Needs reproductionFor issues that lack a demo or example that reproduces the unexpected behavior in questionFor issues that lack a demo or example that reproduces the unexpected behavior in questionType: BugFor bugs and any other unexpected breakageFor bugs and any other unexpected breakage
Metadata
Metadata
Assignees
Labels
Area: CoreFor anything dealing with Mithril core itselfFor anything dealing with Mithril core itselfStatus: Needs reproductionFor issues that lack a demo or example that reproduces the unexpected behavior in questionFor issues that lack a demo or example that reproduces the unexpected behavior in questionType: BugFor bugs and any other unexpected breakageFor bugs and any other unexpected breakage
Type
Fields
Give feedbackNo fields configured for issues without a type.
I have an array of numbers (assume 1 - 5) that is mapped to svgs for display. When the user clicks on a number, the svg changes . However, the wrong svg is often updated (so, clicking on 3 will update the svg for 5 instead of 3).
I suspect this is a mithril svg update problem. Here's why:
I've tried hacking the key for the containing div, but that appears to make no difference.
Is this a known problem? Is there a work around?
I am using the current versions of Chrome and Edge.