Code Monkey home page Code Monkey logo

Comments (11)

opreisSys avatar opreisSys commented on June 14, 2024 1

opreisSys Can you try with the new focus props? V2.9.0

Oh super! This property solved my problem. Thank you.

from react-accessible-treeview.

dgreene1 avatar dgreene1 commented on June 14, 2024

We’d be open to a PR if you want to submit it but I can’t promise it will be merged since there are normal react, jquery, and browser API ways to do this.

from react-accessible-treeview.

opreisSys avatar opreisSys commented on June 14, 2024

Yes there are normal ways to set the focus, but not in such a way that the tree accepts it properly. If I set the focus on a tree element and want to navigate from there with the keyboard, the focus starts again at the top of the tree.

from react-accessible-treeview.

dgreene1 avatar dgreene1 commented on June 14, 2024

Okay. We’ll review your PR if you’d like to submit one.

from react-accessible-treeview.

stale avatar stale commented on June 14, 2024

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.

from react-accessible-treeview.

stale avatar stale commented on June 14, 2024

This issue was closed automatically since it was marked as stale because it has not had recent activity. Thank you for your contributions.

from react-accessible-treeview.

Ethaan avatar Ethaan commented on June 14, 2024

@opreisSys did you manage to solve this? i'm trying to put the keyboard focus on the first element id inside defaultExpandedIds but no luck

from react-accessible-treeview.

opreisSys avatar opreisSys commented on June 14, 2024

@opreisSys did you manage to solve this? i'm trying to put the keyboard focus on the first element id inside defaultExpandedIds but no luck

I currently have no capacity to fix it. But I still need a solution here, because it is an accessibility problem.

from react-accessible-treeview.

dgreene1 avatar dgreene1 commented on June 14, 2024

Can you provide documentation that this is an accessibility problem? It appears to be a usability problem.

I’ll reopen the issues so that someone might contribute it. But currently it’s out of scope for my team too.

help wanted.

from react-accessible-treeview.

opreisSys avatar opreisSys commented on June 14, 2024

@dgreene1 Thank you for reopening the issue!
From my point of view, it is both an usability and accessibility problem.

  1. a blind user navigates in the tree using the keyboard and opens a dialog from there.
  2. user is in the dialog and rerenders the tree when closing the dialogue.
  3. user loses focus in the tree and has to find the location again.

As I mentioned above, unfortunately it does not help to set the focus with browser API methods, as the tree does not accept it and navigates from there back to the top of the tree.

As soon as I have found the relevant place in the accessibility guidelines, I will get back to you.

from react-accessible-treeview.

yhy-1 avatar yhy-1 commented on June 14, 2024

opreisSys Can you try with the new focus props? V2.9.0

from react-accessible-treeview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.