@react-stately/combobox
Advanced tools
Comparing version 3.0.0-nightly.2555 to 3.0.0-nightly.2565
@@ -190,3 +190,7 @@ var { | ||
} else if (shouldCloseOnBlur) { | ||
if (allowsCustomValue) { | ||
var _collection$getItem$t2, _collection$getItem2; | ||
let itemText = (_collection$getItem$t2 = (_collection$getItem2 = collection.getItem(selectedKey)) == null ? void 0 : _collection$getItem2.textValue) != null ? _collection$getItem$t2 : ''; | ||
if (allowsCustomValue && inputValue !== itemText) { | ||
commitCustomValue(); | ||
@@ -193,0 +197,0 @@ } else { |
@@ -169,3 +169,7 @@ import { useMenuTriggerState } from "@react-stately/menu"; | ||
} else if (shouldCloseOnBlur) { | ||
if (allowsCustomValue) { | ||
var _collection$getItem$t2, _collection$getItem2; | ||
let itemText = (_collection$getItem$t2 = (_collection$getItem2 = collection.getItem(selectedKey)) == null ? void 0 : _collection$getItem2.textValue) != null ? _collection$getItem$t2 : ''; | ||
if (allowsCustomValue && inputValue !== itemText) { | ||
commitCustomValue(); | ||
@@ -172,0 +176,0 @@ } else { |
{ | ||
"name": "@react-stately/combobox", | ||
"version": "3.0.0-nightly.2555+cbaffb3e", | ||
"version": "3.0.0-nightly.2565+85ecf65a", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,8 +21,8 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-stately/list": "3.2.3-nightly.2555+cbaffb3e", | ||
"@react-stately/menu": "3.2.2-nightly.2555+cbaffb3e", | ||
"@react-stately/select": "3.1.2-nightly.2555+cbaffb3e", | ||
"@react-stately/utils": "3.0.0-nightly.877+cbaffb3e", | ||
"@react-types/combobox": "3.0.0-nightly.2555+cbaffb3e", | ||
"@react-types/shared": "3.0.0-nightly.877+cbaffb3e" | ||
"@react-stately/list": "3.2.3-nightly.2565+85ecf65a", | ||
"@react-stately/menu": "3.2.2-nightly.2565+85ecf65a", | ||
"@react-stately/select": "3.1.2-nightly.2565+85ecf65a", | ||
"@react-stately/utils": "3.0.0-nightly.887+85ecf65a", | ||
"@react-types/combobox": "3.0.0-nightly.2565+85ecf65a", | ||
"@react-types/shared": "3.0.0-nightly.887+85ecf65a" | ||
}, | ||
@@ -35,3 +35,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "cbaffb3e7e94f5000c42d9153548021907250dee" | ||
"gitHead": "85ecf65a79b92869846b390892aa9e752f479b18" | ||
} |
@@ -220,3 +220,4 @@ /* | ||
} else if (shouldCloseOnBlur) { | ||
if (allowsCustomValue) { | ||
let itemText = collection.getItem(selectedKey)?.textValue ?? ''; | ||
if (allowsCustomValue && inputValue !== itemText) { | ||
commitCustomValue(); | ||
@@ -223,0 +224,0 @@ } else { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
76596
649