@digitransit-component/digitransit-component-autosuggest 11.0.1 → 11.0.2
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.
- package/lib/index.cjs +1 -1
- package/lib/index.cjs.map +1 -1
- package/lib/index.development.cjs +2 -2
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import require$$0, { memo, useState, useEffect, useCallback, useReducer,
|
|
2
|
+
import require$$0, { memo, useState, useRef, useEffect, useCallback, useReducer, useMemo } from 'react';
|
|
3
3
|
import { useTranslation, I18nextProvider } from 'react-i18next';
|
|
4
4
|
import cx from 'classnames';
|
|
5
5
|
import { useCombobox } from 'downshift';
|
|
@@ -13675,7 +13675,7 @@ const MobileView = ({
|
|
|
13675
13675
|
const inputId = `${id}-input`;
|
|
13676
13676
|
const labelId = `${id}-label`;
|
|
13677
13677
|
const [isDialogOpen, setDialogOpen] = useState(false);
|
|
13678
|
-
const inputRef =
|
|
13678
|
+
const inputRef = useRef();
|
|
13679
13679
|
useEffect(() => {
|
|
13680
13680
|
ReactModal.setAppElement(appElement);
|
|
13681
13681
|
}, []);
|