We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The dropdown item is shifting infinitely down.
import { IgrButton, IgrButtonModule, IgrDropdown, IgrDropdownItem, IgrDropdownItemModule, IgrDropdownModule, IgrRipple, IgrRippleModule } from 'igniteui-react'; import { useRef } from 'react'; import styles from './master-view.module.css'; import createClassTransformer from '../style-utils'; IgrButtonModule.register(); IgrDropdownItemModule.register(); IgrDropdownModule.register(); IgrRippleModule.register(); export default function MasterView() { const classes = createClassTransformer(styles); const dropdown = useRef<IgrDropdown>(null); return ( <> <div className={classes("row-layout master-view-container")}> <IgrButton variant="Contained" size="large" clicked={(e: any) => dropdown?.current.toggleTarget(e.target || e.i.nativeElement)} className={classes("button")}> <span>Dropdown</span> <IgrRipple></IgrRipple> </IgrButton> <IgrDropdown ref={dropdown} className={classes("dropdown")}> <div style={{display: 'contents'}} onClick={(e: any) => dropdown?.current.toggleTarget(e.target || e.i.nativeElement)}> <IgrDropdownItem> <span>Option</span> </IgrDropdownItem> </div> </IgrDropdown> </div> </> ); }
Dropdown should close
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
The dropdown item is shifting infinitely down.
Steps to reproduce
Result
Expected result
Dropdown should close
The text was updated successfully, but these errors were encountered: