mindmup / legacy-mindmup

Legacy MindMup (v1) code

Home Page:https://www.mindmup.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Measurements with spaces (or special chars) can't be fully removed

neilstudd opened this issue · comments

When creating a new measure in the Measurements panel, the measurement name is permitted to contain special characters, including spaces. These measurements can be created successfully - for instance, I created a measurement called "XX X".

However, if you subsequently try to remove such a measurement (by clicking the measurement name and selecting "Remove measure"), an error appears in the dev console (see below) and the measurement is not removed from the Label Map dropdown.

Error: Syntax error, unrecognized expression: [data-mm-measure=XX X]
https://d23c2zpg6dm0n.cloudfront.net/20140912202404/external.js
Line 3

To recreate:

  1. Create/open any map
  2. Press "m" to open measurements pane
  3. Create new measurement called XX X
  4. Try to remove the measurement - error in console / not removed from Label Map dropdown

In the screenshot below, note that the measurement has been removed from the table, but there are console errors, and it's sitll in the Label Map dropdown.

measurement

Thanks for reporting this, I fixed it and it will be updated on the next release