Skip to content

Commit

Permalink
Merge branch 'master' into clean-common-props
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Mar 5, 2021
2 parents e9781b4 + 37264a1 commit 52a27c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/react-select/src/Creatable.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ export const makeCreatableSelect = <C: {}>(
if (onCreateOption) onCreateOption(inputValue);
else {
const newOptionData = getNewOptionData(inputValue, inputValue);
const newActionMeta = { action: 'create-option', name };
const newActionMeta = {
action: 'create-option',
name,
option: newOptionData,
};
if (isMulti) {
onChange([...cleanValue(value), newOptionData], newActionMeta);
} else {
Expand Down

0 comments on commit 52a27c5

Please sign in to comment.