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

Field options not supported on layout field (when using custom components) #965

Open
pauloamgomes opened this issue Jan 8, 2019 · 2 comments

Comments

@pauloamgomes
Copy link
Contributor

pauloamgomes commented Jan 8, 2019

Having a default attribute can be handy in some cases where we want to provide a default to the user (e.g. on a select or textfield). It also seems to be already working on Date, Time and Color fields (the libraries handle the default attribute).

Created the PR #964 that provides support for fields: select, text, textarea and rating, for example for a select we can use:

{
  "options": "Option1, Option2, Option3",
  "default": "Option2"
}
@pauloamgomes
Copy link
Contributor Author

Apologies but closing as it seems to be working already but not when using fields in the Layouts addon (I was testing there and later figured out its working on normal fields)...

@pauloamgomes
Copy link
Contributor Author

Reopen as the issue seems when using custom layout components. I can see the options are being passed down to the field but for some reason they are not triggered!

@pauloamgomes pauloamgomes reopened this Jan 10, 2019
@pauloamgomes pauloamgomes changed the title Support for default attribute on fields Field options not supported on layout field (when using custom components) Jan 10, 2019
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

1 participant