From 118fddcd151aae4bb582ddc02b1dfdb08c999b4e Mon Sep 17 00:00:00 2001 From: Uladzislau_Kutarkin Date: Mon, 16 Dec 2024 12:20:03 +0400 Subject: [PATCH] UIPQB-141: fix lint --- .../QueryBuilder/QueryBuilderModal/QueryBuilderModal.js | 2 +- .../QueryBuilderModal/RepeatableFields/RepeatableFields.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/QueryBuilder/QueryBuilder/QueryBuilderModal/QueryBuilderModal.js b/src/QueryBuilder/QueryBuilder/QueryBuilderModal/QueryBuilderModal.js index cd608a0..8fa36e6 100644 --- a/src/QueryBuilder/QueryBuilder/QueryBuilderModal/QueryBuilderModal.js +++ b/src/QueryBuilder/QueryBuilder/QueryBuilderModal/QueryBuilderModal.js @@ -222,7 +222,7 @@ export const QueryBuilderModal = ({ label={} size="large" contentClass={css.modalClass} - enforceFocus={true} + enforceFocus > diff --git a/src/QueryBuilder/QueryBuilder/QueryBuilderModal/RepeatableFields/RepeatableFields.js b/src/QueryBuilder/QueryBuilder/QueryBuilderModal/RepeatableFields/RepeatableFields.js index add54c1..fea5be3 100644 --- a/src/QueryBuilder/QueryBuilder/QueryBuilderModal/RepeatableFields/RepeatableFields.js +++ b/src/QueryBuilder/QueryBuilder/QueryBuilderModal/RepeatableFields/RepeatableFields.js @@ -6,7 +6,7 @@ import { Selection, Col, Row, - getFirstFocusable + getFirstFocusable, } from '@folio/stripes/components'; import PropTypes from 'prop-types'; @@ -49,6 +49,7 @@ export const RepeatableFields = ({ source, setSource, getParamsSource, columns } if (previousRowElement) { const firstFocusableElement = getFirstFocusable(previousRowElement); + if (firstFocusableElement) { firstFocusableElement.focus(); }