From 43085a8d29edce4c7444611b9902e22b94fc66b5 Mon Sep 17 00:00:00 2001 From: Denys Bohdan Date: Tue, 15 Oct 2024 12:46:29 +0200 Subject: [PATCH] UIQM-652 added onInputFocus to prop types --- src/QuickMarcEditor/QuickMarcEditorRows/QuickMarcEditorRows.js | 1 + .../QuickMarcEditorRows/QuickMarcEditorRows.test.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/QuickMarcEditor/QuickMarcEditorRows/QuickMarcEditorRows.js b/src/QuickMarcEditor/QuickMarcEditorRows/QuickMarcEditorRows.js index b677e2c5..293fb77e 100644 --- a/src/QuickMarcEditor/QuickMarcEditorRows/QuickMarcEditorRows.js +++ b/src/QuickMarcEditor/QuickMarcEditorRows/QuickMarcEditorRows.js @@ -662,6 +662,7 @@ QuickMarcEditorRows.propTypes = { marcType: PropTypes.oneOf(Object.values(MARC_TYPES)).isRequired, fixedFieldSpec: PropTypes.object.isRequired, onCheckCentralTenantPerm: PropTypes.func, + onInputFocus: PropTypes.func.isRequired, }; QuickMarcEditorRows.defaultProps = { diff --git a/src/QuickMarcEditor/QuickMarcEditorRows/QuickMarcEditorRows.test.js b/src/QuickMarcEditor/QuickMarcEditorRows/QuickMarcEditorRows.test.js index 6c8dcc49..248baa3d 100644 --- a/src/QuickMarcEditor/QuickMarcEditorRows/QuickMarcEditorRows.test.js +++ b/src/QuickMarcEditor/QuickMarcEditorRows/QuickMarcEditorRows.test.js @@ -176,6 +176,7 @@ const getComponent = (props) => ( }} subtype="m" isLoadingLinkSuggestions={false} + onInputFocus={jest.fn()} {...props} /> )}