How to disable ESC key in ListBox #2268
Answered
by
LFDanLu
dimitrisnl
asked this question in
Q&A
-
|
Hey there, I've been reading the useListBox documentation, and I've noticed that by clicking Is there a way to disable/override this behaviour? |
Beta Was this translation helpful? Give feedback.
Answered by
LFDanLu
Sep 2, 2021
Replies: 2 comments
-
|
You can override the See https://codesandbox.io/s/trusting-perlman-p0e5p?file=/src/App.js:557-670 for a rough example. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dimitrisnl
-
|
Thank you @LFDanLu , really appreciate it! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can override the
onKeyDownreturned byuseListBoxso that it early returns onEscape:See https://codesandbox.io/s/trusting-perlman-p0e5p?file=/src/App.js:557-670 for a rough example.