Skip to content
Grav 2.0 is officially stable. Read the announcement →
Forms & Blueprints

Selectize field "lose" custome values

Started by MJ 6 years ago · 2 replies · 599 views
6 years ago

Hi again,

I try to figure out if this a normal behavior or not. But I think I do something wrong.

Code is like this:

YAML
header.mytheme.navigation.navicon.options:
                  type: selectize
                  label: Icon Options
                  selectize:
                    options:
                      - text: fa-fw
                        value: fa-fw
                      - text: fa-lg
                        value: fa-lg
                      - text: fa-x2
                        value: fa-x2
                  validate:
                    type: commalist

And if I only take the option as given under "options:" everything is working as expected. But when I put some custom options in it and save it, all the custom ones are gone. In "Expert"-mode is see it in the header part of the file like:

YAML
 options:
                - fa-fw
                - 'hello there'
                - 'General Kenobi'

But after saving the page, all the costum Options are gone.

Maybe someone can give me a hint?

Thanks and allbest,

Mario

6 years ago

@KMJ_MJ, Unfortunately, I can reproduce the behaviour you observed and have no hint for you...

After some debugging, it seems to be related to the javascript used by the Admin panel to simulate a selectize field.

I have created an issue at the repo of the Admin panel. You might want to subscribe to the issue to following its responses/progress.

👍 1
6 years ago

Hi pamtbaau,

wow thanks for this.

Allbest,

Mario

Suggested topics

Topic Participants Replies Views Activity
Forms & Blueprints · by Ton Haarmans, 6 years ago
13 1863 6 months ago
Forms & Blueprints · by Hugo Oliveira, 7 months ago
0 451 7 months ago
Forms & Blueprints · by Flachy Joe, 8 months ago
9 548 8 months ago
Forms & Blueprints · by Augustus, 9 months ago
7 570 9 months ago
Forms & Blueprints · by Julien, 9 months ago
10 590 9 months ago