@cloud-ru/ds-fields 2.2.2-preview-86f06def.0 → 2.2.2-preview-41de8d8d.0
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.
|
@@ -277,9 +277,12 @@ exports.FieldSelect = (0, react_1.forwardRef)(function FieldSelect(props, ref) {
|
|
|
277
277
|
inputRef: inputElementRef,
|
|
278
278
|
postfixButtons: (0, react_1.useMemo)(() => [clearButtonSettings, copyButtonSettings], [clearButtonSettings, copyButtonSettings]),
|
|
279
279
|
readonly: !searchable || Boolean(readOnly),
|
|
280
|
-
submitKeys: ['Enter', '
|
|
280
|
+
submitKeys: ['Enter', ' ', 'Tab'],
|
|
281
281
|
});
|
|
282
282
|
const handleTriggerKeyDown = (event) => {
|
|
283
|
+
if (searchable && event.key === ' ') {
|
|
284
|
+
event.stopPropagation();
|
|
285
|
+
}
|
|
283
286
|
// Consumer-обработчик идёт до внутренней обработки (паритет с легаси useHandleOnKeyDown).
|
|
284
287
|
onKeyDownProp?.(event);
|
|
285
288
|
onInputKeyDown(event);
|
|
@@ -271,9 +271,12 @@ export const FieldSelect = forwardRef(function FieldSelect(props, ref) {
|
|
|
271
271
|
inputRef: inputElementRef,
|
|
272
272
|
postfixButtons: useMemo(() => [clearButtonSettings, copyButtonSettings], [clearButtonSettings, copyButtonSettings]),
|
|
273
273
|
readonly: !searchable || Boolean(readOnly),
|
|
274
|
-
submitKeys: ['Enter', '
|
|
274
|
+
submitKeys: ['Enter', ' ', 'Tab'],
|
|
275
275
|
});
|
|
276
276
|
const handleTriggerKeyDown = (event) => {
|
|
277
|
+
if (searchable && event.key === ' ') {
|
|
278
|
+
event.stopPropagation();
|
|
279
|
+
}
|
|
277
280
|
// Consumer-обработчик идёт до внутренней обработки (паритет с легаси useHandleOnKeyDown).
|
|
278
281
|
onKeyDownProp?.(event);
|
|
279
282
|
onInputKeyDown(event);
|