question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inputs or other elements requiring focus in <Slides> are unfocusable or able to be edited.

See original GitHub issue
  • pure-react-carousel version: 1.27.1
  • react version: 16.13.1
  • browser used: Chrome Version 84.0.4147.135 (Official Build) (64-bit)
  • node version: v12.17.0

Relevant code or config:

N/A

What you did:

We have a series of images in a slider, each slide having its own title (input) and description (textarea). We want people to be able to write in the input(s) and textarea(s), respectfully.

What happened:

You can’t seem to focus on the inputs at all, or be able to type in them.

Reproduction:

Minimal code repository (bootstrapped with create-react-app):

https://github.com/princefishthrower/carousel-test

Problem description:

Usability

Suggested solution:

My guess is that something with drag detection is blocking the ability to focus on any other element within the slide. I already tried a few z-index tricks, but that didn’t help. A possible workaround I could envision is turning off drag functionality until an actual drag event is detected, didn’t try this yet.

Can you help us fix this issue by submitting a pull request?

Maybe. I haven’t looked at the source code.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tdorancommented, Sep 22, 2021

I had a similar issue with a modal (nested within a slide) which contained an input. The input was un-focusable, regardless of click or tab. The only solution we could use was adding autoFocus to the input.

0reactions
richardwestenracommented, Nov 27, 2022

I’m experiencing this issue too - a feature which relies on a button’s focus state is not working, because the focus event is being prevented from triggering. It works with keyboard but not with mouse.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Focus & Keyboard Operability - Usability & Web Accessibility
When an HTML element is able to handle keyboard input, it is said to have focus. Exactly one element is able to have...
Read more >
Element with presentational children has no focusable ...
This rule assumes that elements that are part of sequential focus navigation do not immediately blur, or move focus to another element.
Read more >
Focus management and inert
An interactive element gains focus when: It has been navigated to via the Tab key,; it is clicked on, following an anchor that...
Read more >
Control focus with tabindex - web.dev
To focus an element, press the Tab key or call the element's focus() method. HTML; CSS. Result; Skip Results Iframe.
Read more >
Focus and selection - Inputs - Human Interface Guidelines
Focus visually identifies the onscreen object that will respond to interactions like a mouse click, a keyboard command, or a button press on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found