-
Notifications
You must be signed in to change notification settings - Fork 82
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
Tab Handling #46
Comments
Hey, maybe I am missing something, but there is tabindex on the component,
also there is "additionalProps" prop available to pass more props to a
component.
…On Mon, Oct 21, 2019 at 3:11 PM sagedemdreisbusch ***@***.***> wrote:
Hi Sasha,
currently we are having some troubles with tab-handling. During reasearch
I found out, that there is no possibility to give the component an own
tabIndex. Might it be possible to give tabIndex as a prop to the main
component for setting it to the high div and also to the input component?
(we have an own content renderer but currently using the default input)
If you wish us to contribute, just tell me.
Thanks a lot and best wishes
Max
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#46?email_source=notifications&email_token=AACBLRW4QHNGEXJKNQJXJZTQPWL6NA5CNFSM4JC4MWS2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HTEZFJQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACBLRX54IZTANXDRTRIBRDQPWL6NANCNFSM4JC4MWSQ>
.
|
You are right, there is a tabindex, but it does not override anything, does it? If I give the prop tabindex={-1} to any of the two, nothing happens on DOM |
Have you tried:
additionalProps={ { tabIndex: -1 } }
…On Mon, Oct 21, 2019 at 4:34 PM sagedemdreisbusch ***@***.***> wrote:
You are right, there is a tabindex, but it does not override anything,
does it? If I give the prop tabindex={-1} to any of the two, nothing
happens on DOM
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#46?email_source=notifications&email_token=AACBLRV4HFBIGUDVMWI6WHDQPWVWJA5CNFSM4JC4MWS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB2KXUI#issuecomment-544517073>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACBLRQVDDQZVGKX34ESGYTQPWVWJANCNFSM4JC4MWSQ>
.
|
Yeah I did, then the select is not entered any more even if I put tabIndex: 0 in the Input component. The problem is, that the tab handling is working fine on Pressing 'Tab' but normally you can go to previous fields with Shift+'Tab' but this is not working. Have you got any suggestions for that? |
I guess tabs listeners can be added along with the arrows here: react-dropdown-select/src/index.js Line 358 in 98ad37d
Will look into that as this is probably proper behaviour. If you have any suggestions, please share. Haven't #28 worked out? |
Yeah #28 worked great for dropdown handling and also for the normal Tab, but shift-tab is not working either |
So latest latest should have the tabs |
That's great, a lot of thanks |
This doesn't seems to work out of the box when using customItemRenderer - is there a recommended way to hook into the key navigation? |
handleKeyDownFn
Should do it I think, last in the table here
https://sanusart.github.io/react-dropdown-select/api
…On Fri, Nov 22, 2019, 7:43 PM lopesc ***@***.***> wrote:
This doesn't seems to work when using customItemRenderer - is there a
recommended way to hook into the key navigation.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#46?email_source=notifications&email_token=AACBLRR6AUZY5IFDTWIFEQDQVAK5LA5CNFSM4JC4MWS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE6LHZY#issuecomment-557626343>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACBLRUGHWIKOH7K65BWUELQVAK5LANCNFSM4JC4MWSQ>
.
|
Hmmm ok, I'll take a look. My understanding is that the internal |
Oh I think you can get it via |
Will take a look, thanks for the advice |
Hi @sagedemdreisbusch , have "Shift + Tab" worked on latest version? I try to download the latest version (v4.3.0), it is well working with Tab by moving to a next element, but "Shift + Tab" does not go back to the previous element. Any suggestion, thanks a lot? |
@sanusart May you give me some suggestions on "Shift + tab" issue. Thanks a lot. |
@quockhanhle93 It works on the main demo. https://sanusart.github.io/react-dropdown-select/ |
@sanusart Sorry for not describing my issue carefully. My issue is to move from 1 dropdown to another dropdown. It works well with Tab to move forward to next element. For Shift tab, it is expected to move back to the previous dropdown (or another element), but it is not. Please help me see below image, for using Shift + tab, it is expected to jump back to github icon. Anyway, I overrides
|
Yes, I see how it braking the chain of shift+tab navigation. |
Hi Sasha,
currently we are having some troubles with tab-handling. During reasearch I found out, that there is no possibility to give the component an own tabIndex. Might it be possible to give tabIndex as a prop to the main component for setting it to the high div and also to the input component? (we have an own content renderer but currently using the default input)
If you wish us to contribute, just tell me.
Thanks a lot and best wishes
Max
The text was updated successfully, but these errors were encountered: