Skip to content
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

Option to turn off keyboard navigation #144

Closed
ctse020 opened this issue Aug 9, 2023 · 4 comments
Closed

Option to turn off keyboard navigation #144

ctse020 opened this issue Aug 9, 2023 · 4 comments

Comments

@ctse020
Copy link

ctse020 commented Aug 9, 2023

I want to use this component in combination with a multiline textfield in a sub node.
But in the textfield when I press the enter key or space key, the onSelect event of the tree triggers this key press event.
Is there a way to turn off keyboard navigation completely in the tree?

@dgreene1
Copy link
Owner

dgreene1 commented Aug 9, 2023

I’m sorry, but we don’t have support capacity for Stack Overflow type of questions. If it’s not in our documentation or our unit tests then it likely isn’t supported. If it’s not, we’re open to PRs, but we would need a more informative explanation of the value proposition before saying yes to the feature.

@ctse020 ctse020 closed this as completed Aug 10, 2023
@ctse020
Copy link
Author

ctse020 commented Aug 10, 2023

Ok, as a workaround I solved it like this:

<TreeView onKeyDown={(evt) => { evt.stopPropagation(); }} ...

@rahuljoshi100
Copy link

Ok, as a workaround I solved it like this:

<TreeView onKeyDown={(evt) => { evt.stopPropagation(); }} ...

how did you add onKeyDown to TreeView? i am using typescript and that is not possible.

@dennypenta
Copy link

Ok, as a workaround I solved it like this:
<TreeView onKeyDown={(evt) => { evt.stopPropagation(); }} ...

how did you add onKeyDown to TreeView? i am using typescript and that is not possible.

try updating the version, works fine for me

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

No branches or pull requests

4 participants