Skip to content

Commit

Permalink
Removed keyboard event limitation for the live area
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-danylchenko committed Aug 22, 2024
1 parent ce63a24 commit fc9bc7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const useAnnouncePopupOpening = (args: { message?: string, floatingOpen:
const idleTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);

useEffect(() => {
if (!floatingOpen || event?.type !== 'keydown') return;
if (!floatingOpen) return;

const scheduleIdleAnnouncement = () => {
clearTimeout(idleTimeoutRef.current);
Expand Down

0 comments on commit fc9bc7a

Please sign in to comment.