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

Default option doesn't work for select input with string options #1539

Closed
canstudios-nicolaw opened this issue Feb 23, 2017 · 3 comments
Closed
Labels
S: merged Completed, reviewed, and merged issues

Comments

@canstudios-nicolaw
Copy link
Contributor

Inputs of type boolean can use the "default" option to choose an option which will be selected by default.

This "default" option does not work for select inputs with string options. It should be possible to define which will be selected.

@tomgreenfield
Copy link
Contributor

I actually can't replicate this on the develop branch. Seems to be working fine now.

Schema example:

"_selectTest": {
  "type": "string",
  "default": "blue",
  "inputType": {
    "type": "Select",
    "options": [
      "red",
      "blue"
    ]
  }
}

@danielstorey
Copy link
Member

I've experienced a similar issue. From what I can deduce so far default options work fine on extensions but are blank on components.

@simondate
Copy link
Member

We've had this issue recently with the Trickle extension since we've upgraded the latest version of the AT.

@taylortom taylortom added this to the 0.6.0 Scaffold rewrite milestone Jun 27, 2018
@taylortom taylortom added the S: awaiting-review Completed issues waiting on reviews label Jul 6, 2018
@taylortom taylortom added S: merged Completed, reviewed, and merged issues and removed S: awaiting-review Completed issues waiting on reviews labels Aug 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: merged Completed, reviewed, and merged issues
Projects
None yet
Development

No branches or pull requests

5 participants