Skip to content

Commit

Permalink
Fix primefaces#5424: CascadeSelect use data instead of CSS selector
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Nov 28, 2023
1 parent e135dc2 commit bf4cf1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/cascadeselect/CascadeSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import PrimeReact, { PrimeReactContext } from '../api/Api';
import { useHandleStyle } from '../componentbase/ComponentBase';
import { CSSTransition } from '../csstransition/CSSTransition';
import { useMountEffect, useOverlayListener, useUnmountEffect, useUpdateEffect, useOnEscapeKey } from '../hooks/Hooks';
import { useMountEffect, useOnEscapeKey, useOverlayListener, useUnmountEffect, useUpdateEffect } from '../hooks/Hooks';
import { ChevronDownIcon } from '../icons/chevrondown';
import { OverlayService } from '../overlayservice/OverlayService';
import { Portal } from '../portal/Portal';
Expand Down Expand Up @@ -142,7 +142,7 @@ export const CascadeSelect = React.memo(
//down
case 40:
if (overlayVisibleState) {
DomHandler.findSingle(overlayRef.current, '.p-cascadeselect-item').children[0].focus();
DomHandler.findSingle(overlayRef.current, '[data-pc-section="item"]').children[0].focus();
} else if (event.altKey && props.options && props.options.length) {
show();
}
Expand Down

0 comments on commit bf4cf1a

Please sign in to comment.