Giter Club home page Giter Club logo

Comments (5)

klimashkin avatar klimashkin commented on May 27, 2024

Hm, the same thing in Safari. In Chrome it's fine

from react-focus-lock.

klimashkin avatar klimashkin commented on May 27, 2024

Investigating further. That happens only if I click with mouse on a button that invokes modal. If I focus that button with keyboard and press Space, then I can reach button in opened modal with one tab as expected.

from react-focus-lock.

theKashey avatar theKashey commented on May 27, 2024

The question is - if you disable autofocus - what element would be active after modal being opened? And what element would be focused after the first "tab".
Something should be selected.

Could you just setInterval(() => console.log(document.activeElement),1000)?

from react-focus-lock.

klimashkin avatar klimashkin commented on May 27, 2024

Did that.
Says <body>, then after pressing tab <body> again, and only after pressing tab second time shows <button>

from react-focus-lock.

theKashey avatar theKashey commented on May 27, 2024

I'll investigate.

from react-focus-lock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.