Skip to content

[useDateRangePicker] how to prevent autofocus on closeButton in dateField? #4677

Answered by snowystinger
ananassta asked this question in Q&A
Discussion options

You must be logged in to vote

Sending a PR is the fastest way to get a bug fixed. Otherwise you'll have to tolerate our priorities a bit more.
The idea I shared was:

We think that we could check for spinbuttons or textboxes when trying to advance the cursor instead of just !button

So that accept function would look more like (psuedo-ish code)

accept: (node) => node.role === 'spinbutton' || node.role === 'textbox'

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ananassta
Comment options

@snowystinger
Comment options

@ananassta
Comment options

@snowystinger
Comment options

Answer selected by ananassta
@tgelu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants