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
import React, { useState, useEffect, useRef } from 'react'; import { TreeTable } from 'primereact/treetable'; import { Column } from 'primereact/column'; import { Menu } from 'primereact/menu'; import { Button } from 'primereact/button'; import { NodeService } from './service/NodeService'; export default function BasicDemo() { const [nodes, setNodes] = useState([]); const menu = useRef(null); useEffect(() => { NodeService.getTreeTableNodes().then((data) => setNodes(data)); }, []); const items = [ { label: 'Edit', }, { label: 'Delete', }, ]; const actionTemplate = () => { return ( <> <Menu model={items} ref={menu} popup /> <Button icon="pi pi-ellipsis-h" onClick={(event) => menu?.current?.toggle(event)} /> </> ); }; return ( <div className="card"> <TreeTable value={nodes} tableStyle={{ minWidth: '50rem' }}> <Column field="name" header="Name" expander></Column> <Column field="size" header="Size"></Column> <Column field="type" body={actionTemplate}></Column> </TreeTable> </div> ); }
This is the example code of bug. After opening the more menu, just try to reach the menu items with keyboard and it is jumping.
No response
10.6.3
18.x
TypeScript
Vite
ALL
Just copy the code for any Treetable example.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
This is the example code of bug. After opening the more menu, just try to reach the menu items with keyboard and it is jumping.
Reproducer
No response
PrimeReact version
10.6.3
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
ALL
Steps to reproduce the behavior
Just copy the code for any Treetable example.
Expected behavior
No response
The text was updated successfully, but these errors were encountered: