primereact icon indicating copy to clipboard operation
primereact copied to clipboard

Tree drag and drop fails when moving a leaf while filter active

Open cfblaeb opened this issue 4 years ago • 0 comments

There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

[X] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Codesandbox Case (Bug Reports) Please fork the codesandbox below and create a case demonstrating your bug report. Issues without a codesandbox have much less possibility to be reviewed.

https://codesandbox.io/s/upbeat-clarke-fkj4p

Current behavior

Filter search for a deep node, e.g. "resume" in the codesandbox example. and then drag it to root node. This will cause an error. Works fine if filter is not active

Expected behavior

I would expect the node to move as if filter was not active

Minimal reproduction of the problem with instructions

Please tell us about your environment:

Tested on ubuntu, webstorm, npm, firefox, but also demonstrated codesandbox

  • React version:

Latest, 17.0.2

  • PrimeReact version:

Latest, 7.0.1

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Firefox

  • Language: [all | TypeScript X.X | ES6/7 | ES5] TypeScript

cfblaeb avatar Nov 19 '21 18:11 cfblaeb