Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling language selection when a language is specified in the config. #48

Open
jmartyniak opened this issue Feb 18, 2023 · 1 comment

Comments

@jmartyniak
Copy link

When I have specified the component like so:

        defineField({
            name: 'query',
            title: 'Query',
            type: 'code',
            options: {
                language: 'json',
            }
        }),

The language selection drop-down still shows, even though the only acceptable language input for this control is json.

Is there a way to disable that?

@nourmalaeb
Copy link

I would also like this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants