getgrav / getgrav/grav-plugin-form

Can't disable selectize for `type: select`

Open
#387 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
64
Forks
80
Avg merge
10h 13m
Merged PRs (30d)
9

Description

I'm using some Grav fields within another widget manager on the admin-side.
I found that selectize binding may sometimes be annoying and would like to disable it.
But I couldn't find a way to do this.

- `templates/forms/fields/select/select.html.twig` forcefully creates the `data-grav-selectize` attribute.
- `/themes/grav/app/forms/fields/selectize.js` forcefull `SelectizeField` any DOM node having the above attribute (whatever it's value is)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with templates/forms/fields/select/select.html.twig and /themes/grav/app/forms/fields/selectize.js. Trace how data-grav-selectize is added and how SelectizeField finds matching DOM nodes. Done means providing a supported way to disable Selectize for a select field without changing unrelated form behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.