Skip to content

Selected term should be scrolled into view/vybraný pojem by měl být zobrazen ve stromu pojmů #822

Closed

Description

@ledsoft

Description

When a term is selected, it should be scrolled into view in the tree component. For example, when I open the detail of a term, the term tree selector on the right should display the selected term in the tree (not just as a value) - the term should be scrolled into view, and its ancestors should be expanded.

Usefulness

  1. It is a nice to have feature, I can live without it.

Popis

Vybraný pojem by měl být zobrazen ve stromečkové komponentě. Např. když si otevřu detail pojmu, měl by tento pojem být zobrazen v selektoru pojmů vpravo (a ne jen jako jeho hodnota) - menu by mělo nascrollovat na vybraný pojem a expandovat všechny jeho předky.


Activity

  1. added
    enhancementNew feature or request
    IPRInitiated/requested by IPR
    on Jul 10, 2026
  2. ledsoft commented on Jul 10, 2026

    @ledsoft
    ContributorAuthor
  3. moved this from 🆕 New to 📋 Milestone backlog in TermIton Aug 7, 2026
  4. self-assigned this
    on Aug 19, 2026
  5. added a commit that references this issue on Aug 31, 2026
  6. moved this from 📋 Milestone backlog to 🏗 In progress in TermIton Aug 31, 2026
  7. added a commit that references this issue on Aug 31, 2026
  8. added 3 commits that reference this issue on Aug 31, 2026
  9. 23 remaining items

  10. added 2 commits that reference this issue on Sep 4, 2026
  11. moved this from 🏗 In progress to Deployed to development in TermIton Sep 4, 2026
  12. MichalMed commented on Sep 14, 2026

    @MichalMed
    Contributor

    @lukaskabc Does not work as expected.
    If I go to a term detail from the list of terms in the vocabulary detail, it refocuses as expected,
    But if I am in the term detail and switch to other (does not matter whether it was switched from term details "nadřazené/podřazené pojmy" or from the tree structure on the right side), tree strucutre remains focused on the same term it was before. Reloading page fixes it.

    How to reproduce:

    1. go to the term details of some term:
    Image
    1. click on any other term either in the term details table or in the tree strucutre on the right. Term details change, buit tree structure remains on the previous term.
    Image

    Moreover, in this case, when upper level term was selected, the tree is collapsed.

  13. ledsoft commented on Sep 14, 2026

    @ledsoft
    ContributorAuthor

    @MichalMed Note that the first issue is already tracked under #851.

  14. lukaskabc commented on Sep 17, 2026

    @lukaskabc
    Collaborator

    @MichalMed, the issues should be resolved now if you have a moment to test it again.

  15. lukaskabc commented on Sep 29, 2026

    @lukaskabc
    Collaborator

    Requested new features for the tree select component:

    • Double/Triple click in the input field does not select the current value
    • Backspace is not working in the input field
    • The first option in the list is focused by default, the currently selected value should be focused by default, even after interaction with the tree select
  16. lukaskabc commented on Sep 30, 2026

    @lukaskabc
    Collaborator
    • Double/Triple click in the input field does not select the current value
    • Backspace is not working in the input field

    The interactions should work with filtering text entered by the user. The interactions do not work for the currently selected value.
    This is the behavior of internal react-select, and after discussion, we decided not to change that behavior.
    Instead, the caret placement will be moved to before the current value to match react-select's behavior.

    Image

    Tree component PR: lecbyjak/intelligent-tree-select#136

  17. MichalMed commented on Oct 5, 2026

    @MichalMed
    Contributor

    It seems like working, except the text in the input field is not highlighted even if it is selected.

  18. lukaskabc commented on Oct 5, 2026

    @lukaskabc
    Collaborator

    except the text in the input field is not highlighted even if it is selected

    Can you please explain more what you mean?

  19. MichalMed commented on Oct 13, 2026

    @MichalMed
    Contributor

    If I double-click on the search bar above the tree component and there is a term already selected, it is not highlighted: i.e. I can edit it, but it does not look like I can. The name of a term selected before remains there, until other one is selected.

    Screencast.from.2026-10-13.09-18-36.webm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

IPRInitiated/requested by IPRenhancementNew feature or request

Type

No type

Projects

  • Status
    ✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions