We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fbd5ace + 37264a1 commit b8f9ec7Copy full SHA for b8f9ec7
packages/react-select/src/Creatable.js
@@ -169,7 +169,11 @@ export const makeCreatableSelect = <C: {}>(
169
if (onCreateOption) onCreateOption(inputValue);
170
else {
171
const newOptionData = getNewOptionData(inputValue, inputValue);
172
- const newActionMeta = { action: 'create-option', name };
+ const newActionMeta = {
173
+ action: 'create-option',
174
+ name,
175
+ option: newOptionData,
176
+ };
177
if (isMulti) {
178
onChange([...cleanValue(value), newOptionData], newActionMeta);
179
} else {
0 commit comments