Skip to content

feat(Select): autoSelect#1887

Merged
hevele-moda merged 1 commit intomasterfrom
select-autoselect
Jul 23, 2021
Merged

feat(Select): autoSelect#1887
hevele-moda merged 1 commit intomasterfrom
select-autoselect

Conversation

@hevele-moda
Copy link
Copy Markdown
Contributor

Adds autoSelect to props.
If it's true, selecting a value will update the selection automatically, even if the value passed from props doesn't change.
If it's false, selecting a value will not update the selection, the user has to make sure the value is appropriately updated on onChange.
If no value is passed in from props, the component will be uncontrolled, meaning that it will keep it's internal state and update it accordingly when selecting a value.

Note: We can usually use the default autoSelect: true option. However, there are cases when the user is required to confirm the change. One example is switching rule versions in facade when the current draft is dirty.

@hevele-moda hevele-moda requested a review from a team July 23, 2021 10:35
@hevele-moda hevele-moda merged commit 1b69b78 into master Jul 23, 2021
@hevele-moda hevele-moda deleted the select-autoselect branch July 23, 2021 10:56
moda-automation-devops pushed a commit that referenced this pull request Jul 23, 2021
# [15.7.0](v15.6.1...v15.7.0) (2021-07-23)

### Features

* **Select:** autoSelect ([#1887](#1887)) ([1b69b78](1b69b78))
@moda-automation-devops
Copy link
Copy Markdown

🎉 This PR is included in version 15.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants