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

add explanations for what the various actionTypes are #3460

Merged
merged 2 commits into from
Mar 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs/pages/advanced/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ export default function Advanced() {

The action argument is a string with the following possible values

'select-option'
'deselect-option'
'remove-value'
'pop-value'
'set-value'
'clear'
'create-option'
* 'select-option': Selecting an option from the list
* 'deselect-option': (Multiple) Deselecting an option from the list
* 'remove-value': (Multiple) Removing a selected option with the remove button
* 'pop-value': Removing options using backspace
* 'set-value': Calling setValue from a component without an action
* 'clear': Removing all selected options with the clear button
* 'create-option': (Creatable) Creating a new option

By explicitly passing you what type of change event has been fired, we allow you to have more granular control
over how the select behaves after an onChange even is fired.
Expand Down