Skip to content
New issue

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

Fix 6631 DragDrop Tree keyboard navigation #6646

Merged
merged 4 commits into from
May 24, 2024

Conversation

KirilCycle
Copy link
Contributor

Defect Fixes

Fix #6631 Skip drag points where needed

Copy link

vercel bot commented May 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
primereact ⬜️ Ignored (Inspect) Visit Preview May 21, 2024 5:07pm
primereact-v9 ⬜️ Ignored (Inspect) Visit Preview May 21, 2024 5:07pm

@KirilCycle
Copy link
Contributor Author

I've seen that primang Tree stores nodes and droppoints together in a special p-treenode tag, I don't know if this is the only point of having an additional tag, or if I should study their example deeper and try something similar, or if we are good with this solution ?

@@ -84,17 +84,41 @@ export const UITreeNode = React.memo((props) => {
}
};

const findNextNonDroppointSibling = (nodeElement) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conditions can be refactored

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to study this one...

@KirilCycle KirilCycle changed the title Fix/tree drop keyboard nav Fix 6631 DragDrop Tree keyboard navigation May 22, 2024
@KirilCycle KirilCycle marked this pull request as ready for review May 22, 2024 12:28
@nitrogenous nitrogenous requested review from nitrogenous, melloware and gucal and removed request for nitrogenous May 22, 2024 12:42
@melloware melloware added Component: Accessibility Issue or pull request is related to WCAG or ARIA Status: Pending Review Issue or pull request is being reviewed by Core Team labels May 23, 2024
Copy link
Member

@nitrogenous nitrogenous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and Works Fine @gucal @melloware what do you people say?

@melloware
Copy link
Member

Its good for me i was gonna refactor it slightly but i can do it after the PR is merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Accessibility Issue or pull request is related to WCAG or ARIA Status: Pending Review Issue or pull request is being reviewed by Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tree Node Drag & Drop Keyboard Support
3 participants