You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My app is made of a multiple columns table in which additional column may contains some links triggering a function that open a popup window or perform other action.
Using version 2.29.x, clicking a link just open the popup window.
Using 2.30+, clicking the same link makes the row scrolling to the middle of the window (and probably select the row).
Then, only if I click the link a second time the popup window opens.
Is this a bug or is there a way to bypass the first click event using 2.30+?
If I remove the scrollOfs option with 2.30+, the links are working as expected but I can no longer scroll a node to the middle of the window (e.g. using node.scrollIntoView({'topNode': node})).
I also tried to move scrollOfs option from the tree to each scrollIntoView call, without success.
I also tried 'unselectable': true
Note: when the row is not selected, the click event is fired only when clicking the node expander cell (second column in my case).
Environment
Browser type and version: Chrome 86, FF 81, Edge 86
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Seems to be introduced with #863 in v2.30, that triggers node.scrollIntoView() when a node is activated.
Probably caused by the fact, that scrolling is triggered on mousedown, and the mouseup event does not occur at the same position.
The problem also occurs with checkboxes not beeing selected in this case.
My app is made of a multiple columns table in which additional column may contains some links triggering a function that open a popup window or perform other action.
Using version 2.29.x, clicking a link just open the popup window.
Using 2.30+, clicking the same link makes the row scrolling to the middle of the window (and probably select the row).
Then, only if I click the link a second time the popup window opens.
Is this a bug or is there a way to bypass the first click event using 2.30+?
Code for 2.29.x:
If I remove the scrollOfs option with 2.30+, the links are working as expected but I can no longer scroll a node to the middle of the window (e.g. using node.scrollIntoView({'topNode': node})).
I also tried to move scrollOfs option from the tree to each scrollIntoView call, without success.
I also tried 'unselectable': true
Note: when the row is not selected, the click event is fired only when clicking the node expander cell (second column in my case).
Environment
Thanks a lot for maintaining this great FancyTree,
Olivier
The text was updated successfully, but these errors were encountered: