Skip to content

Commit

Permalink
Merge pull request #3460 from mikekellyio/patch-1
Browse files Browse the repository at this point in the history
add explanations for what the various actionTypes are
  • Loading branch information
gwyneplaine authored Mar 11, 2019
2 parents 770ba08 + eebf3dd commit 25c39e5
Showing 1 changed file with 7 additions and 7 deletions.
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

0 comments on commit 25c39e5

Please sign in to comment.