How to force JointJS to fully re-render an element's DOM after removing custom markup content? #3001
-
IntroductionI'm dynamically rendering custom compartments in a JointJS element using the markup and attrs properties. Each section (e.g., "parts", "attributes", etc.) is defined in a custom property custom:sections, and I regenerate the element's markup and attrs whenever a section item is removed. Here's a simplified version of the deletion logic:
I confirmed that buildSectionMarkup() does remove the deleted item from the new markup. I've tried calling: Thanks in advance! Steps to reproduceNo response Restrictions & ConstraintsNo response Does your question relate to JointJS or JointJS+. Select both if applicable.JointJS, JointJS+ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The cell.prop('markup', updatedMarkup, { rewrite: true }); |
Beta Was this translation helpful? Give feedback.
The
prop()
method is merging value by default. You need to pass therewrite
flag (docs).