Skip to content

Why are there extra 'volatile' options in my select, and how do I get rid of them? #964

Answered by DmitrySharabin
jon-p-moore asked this question in Q&A
Discussion options

You must be logged in to vote

Hey Jon,

How come I'm seeing the code of an expression which should be evaluated (and is being evaluated, since setting the option from the URL parameter is working)?

Unfortunately, it's a known issue (see #741) and is on our radar. I hope it'll be fixed in the next release.

Why have I got these additional options showing up, and what should I do to get rid of them?

For now, as a workaround, I would suggest you programmatically delete those extra options after the corresponding app is ready. The following function (or something similar) should help:

(async () => {
    await Mavo.inited;
    await Mavo.all["APP_NAME"].treeBuilt;
    $$(".mv-volatile").forEach(o => o.remove()); // Or $$…

Replies: 7 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jon-p-moore
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jon-p-moore
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@LeaVerou
Comment options

@jon-p-moore
Comment options

@LeaVerou
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants