@box/blueprint-web 6.15.0 → 6.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -187,12 +187,6 @@ const RootInner = ({
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
}, [clearOnEscape, isOpen, multiselect, setInputValue, setOpen, setSelectedValue]);
|
|
190
|
-
const handleOnKeyUp = useCallback(event => {
|
|
191
|
-
// Clear selected value when the input is empty for single-select variant
|
|
192
|
-
if (inputValue === '' && !multiselect) {
|
|
193
|
-
setSelectedValue('');
|
|
194
|
-
}
|
|
195
|
-
}, [inputValue, multiselect, setSelectedValue]);
|
|
196
190
|
// Reset input on blur
|
|
197
191
|
const handleOnBlur = useCallback(() => {
|
|
198
192
|
if (!clearOnBlur || isOpen) {
|
|
@@ -254,7 +248,6 @@ const RootInner = ({
|
|
|
254
248
|
id: comboboxId,
|
|
255
249
|
onBlur: handleOnBlur,
|
|
256
250
|
onKeyDown: handleKeyDown,
|
|
257
|
-
onKeyUp: handleOnKeyUp,
|
|
258
251
|
required: required,
|
|
259
252
|
store: comboboxStore
|
|
260
253
|
})
|
|
@@ -279,7 +272,6 @@ const RootInner = ({
|
|
|
279
272
|
label: label,
|
|
280
273
|
onBlur: handleOnBlur,
|
|
281
274
|
onKeyDown: handleKeyDown,
|
|
282
|
-
onKeyUp: handleOnKeyUp,
|
|
283
275
|
required: required
|
|
284
276
|
}),
|
|
285
277
|
store: comboboxStore
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "6.15.
|
|
3
|
+
"version": "6.15.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@box/storybook-utils": "^0.0.3"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "1f7ff1dd54e90dd51c1766a4c51ee7da2fd39552",
|
|
61
61
|
"module": "lib-esm/index.js",
|
|
62
62
|
"main": "lib-esm/index.js",
|
|
63
63
|
"exports": {
|