Giter Site home page Giter Site logo

Comments (3)

mgol avatar mgol commented on June 8, 2024 1

Always update to the latest jQuery version within the major one you use; right now, this is 3.7.1. We fixed a lot of focus issues in 3.7.0 so it’s not worth trying to understand the issue before you try the latest version and see if the problem is still there. This might be issue #4950 but I’m not sure.

BTW, .focus() is deprecated, not removed. It’s just a simple alias of .trigger( "focus" ), it’s not related to issues you might have.

from jquery.

mgol avatar mgol commented on June 8, 2024 1

.focus() on jQuery objects is literally an alias of .trigger( "focus" ); they are doing exactly the same things.

from jquery.

thambiduraidevmahendran avatar thambiduraidevmahendran commented on June 8, 2024

.trigger("focus") with jQuery does not produce the desired outcome for the above mentioned issue.

However, directly invoking childElement[0].focus()(native function) achieves the desired result.

from jquery.

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.