Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@devtron-labs/devtron-fe-common-lib",
"version": "1.20.6-pre-51",
"version": "1.20.6-alpha-87",
"description": "Supporting common component library",
"type": "module",
"main": "dist/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ export const SelectPickerTextArea = ({
})
}
} else if (action === ReactSelectInputAction.inputBlur) {
if (isCreatable) {
const selectValue = value as SingleValue<SelectPickerOptionType<string>>
if (isCreatable && (!selectValue?.value || selectValue.value !== inputValue)) {
handleCreateOption(inputValue)
return
}
// Reverting input to previously selected value in case of blur event. (no-selection)
const selectValue = value as SingleValue<SelectPickerOptionType<string>>
setInputValue(selectValue?.value || '')
}
}
Expand Down
Loading