A11y: do not change the focus when switching between Viz/Suggestions/Library Panels views (#53814) (#54007)
(cherry picked from commit 51d173711f)
Co-authored-by: Polina Boneva <13227501+polibb@users.noreply.github.com>
This commit is contained in:
co-authored by
Polina Boneva
parent
775ba0a7ee
commit
a18df43e65
@@ -1,5 +1,5 @@
|
||||
import { css } from '@emotion/css';
|
||||
import React, { FC, useCallback, useEffect, useRef, useState } from 'react';
|
||||
import React, { FC, useCallback, useRef, useState } from 'react';
|
||||
import { useDispatch, useSelector } from 'react-redux';
|
||||
import { useLocalStorage } from 'react-use';
|
||||
|
||||
@@ -49,13 +49,6 @@ export const VisualizationSelectPane: FC<Props> = ({ panel, data }) => {
|
||||
[dispatch, panel]
|
||||
);
|
||||
|
||||
// Give Search input focus when using radio button switch list mode
|
||||
useEffect(() => {
|
||||
if (searchRef.current) {
|
||||
searchRef.current.focus();
|
||||
}
|
||||
}, [listMode]);
|
||||
|
||||
const onCloseVizPicker = () => {
|
||||
dispatch(toggleVizPicker(false));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user