jquery / jquery/jquery-ui

position() method positions an element covering the target element at the first time

Open
#2,080 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs info
Dominant language
JavaScript
Stars
11.3k
Forks
5.2k
PR merge metrics
No merged PRs in 30d

Description

Trying to show tooltip for an input field on focus.
position() method positions the tooltip(position: absolute) partially covering the target input field at the first time.

my: left
at: right
collision: flipfit

It positions correctly the 2nd time when the input field on focus.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the first-focus tooltip behavior through the position() method with left, right, and collision: flipfit, then compare it with the second focus. Investigate why the absolutely positioned tooltip initially covers the input; done means the tooltip is correctly positioned on the first focus as well as subsequent focuses.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.