You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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)...
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
changed the title
Support for default attribute on fields
Field options not supported on layout field (when using custom components)
Jan 10, 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:
The text was updated successfully, but these errors were encountered: