Skip to content

v1.0.19 (2020-04-26)

Compare
Choose a tag to compare
@moonflare moonflare released this 26 Apr 10:38
· 25 commits to master since this release
244c781

v1.0.19 (2020-04-26)

🌱 Internal

  • list, list-item

  • button

  • select

    • #165 refactor: Change inputs from uncontrolled to controlled. (@moonflare)
    • #165 refactor: Changes defaultValue selection functionality (@moonflare)
    • #165 refactor: Adds deprecation message for the usage of options.selected field (@moonflare)
  • search-dropdown

    • #165 a11y: Adds initial tab navigation. (We can navigate with tab, open the dropdown and select an item by pressing Enter) (@moonflare)

🐛 Bugfix

⚠️ Deprecation

  • select
    • The usage of options.selected field has been deprecated in favor of the defaultValue prop.
      • Before:
        const options = [
          { text: "Option 1", value: "value1", selected: true },
          { text: "Option 2", value: "value2" },
          { text: "Option 3", value: "value3" }
        ];
      
        <Select
          options={options}
        />
      • After:
        const options = [
          { text: "Option 1", value: "value1" },
          { text: "Option 2", value: "value2" },
          { text: "Option 3", value: "value3" }
        ];
        const initialValue = options[0].value;
      
        <Select
          defaultValue={initialValue}
          options={options}
        />