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:
- Create/open any map
- Press "m" to open measurements pane
- Create new measurement called XX X
- 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.
Thanks for reporting this, I fixed it and it will be updated on the next release