Skip to content

Fixed an issue in the Search Objects tool where selecting a node woul… #8851

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anilsahoo20
Copy link
Contributor

…d sometimes result in a different node being selected. #8675

…d sometimes result in a different node being selected. pgadmin-org#8675
@@ -1650,6 +1651,10 @@ define('pgadmin.browser', [

},

disableTreeSelection: function(_disable) {
pgBrowser.disable_tree_select = _disable;
Copy link
Contributor

@adityatoshniwal adityatoshniwal Jun 16, 2025

Choose a reason for hiding this comment

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

I think disable selection value should be internal to tree object which can internally check when calling .select. That way we will not need to add check at all the places.
Other than that, I don't think this is a good solution. You're disable select on search objects - kind of a hack and not solution. You're not fixing the root cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants