designsystemsinternational/mechanic

Error when providing options - "values is not defined"

Closed this issue · 3 comments

Describe the bug

ReferenceError: values is not defined - You may find more context in console.

To Reproduce

  1. Add options to input to convert it to select field type
export const inputs = {
  color: {
    type: "number",
    default: 1,
    options: [1, 5, 10], 
  },
  // ...
}

Expected behavior
Select dropdown should be provided with options without rendering error.

Screenshots
image

Desktop

  • Windows
  • Chrome
  • 2.0.0-beta.1

Additional context
I tested this out on version 1.2.0 and it works as expected so it seems related to most recent 2.0.0-beta release.

Thanks for this! We'll try to fix it as soon as possible.

Hey @reaganchisholm! We just released v2.0.0-beta.2, and I think you'll find that the mentioned bug doesn't occur anymore.

Working as expected now, thanks!